Skip to content

Commit bfdc078

Browse files
committed
remove the watcher interface
1 parent a8b9494 commit bfdc078

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

driver.go

+1-8
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ import (
2323
"sync"
2424
)
2525

26-
// watcher interface is used for context support (From Go 1.8)
27-
type watcher interface {
28-
startWatcher()
29-
}
30-
3126
// MySQLDriver is exported to make the driver directly accessible.
3227
// In general the driver is used via the database/sql package.
3328
type MySQLDriver struct{}
@@ -96,9 +91,7 @@ func (d MySQLDriver) Open(dsn string) (driver.Conn, error) {
9691
}
9792

9893
// Call startWatcher for context support (From Go 1.8)
99-
if s, ok := interface{}(mc).(watcher); ok {
100-
s.startWatcher()
101-
}
94+
mc.startWatcher()
10295

10396
mc.buf = newBuffer(mc.netConn)
10497

0 commit comments

Comments
 (0)