We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8b9494 commit bfdc078Copy full SHA for bfdc078
driver.go
@@ -23,11 +23,6 @@ import (
23
"sync"
24
)
25
26
-// watcher interface is used for context support (From Go 1.8)
27
-type watcher interface {
28
- startWatcher()
29
-}
30
-
31
// MySQLDriver is exported to make the driver directly accessible.
32
// In general the driver is used via the database/sql package.
33
type MySQLDriver struct{}
@@ -96,9 +91,7 @@ func (d MySQLDriver) Open(dsn string) (driver.Conn, error) {
96
91
}
97
92
98
93
// Call startWatcher for context support (From Go 1.8)
99
- if s, ok := interface{}(mc).(watcher); ok {
100
- s.startWatcher()
101
- }
94
+ mc.startWatcher()
102
95
103
mc.buf = newBuffer(mc.netConn)
104
0 commit comments