File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import (
1212 "time"
1313
1414 "github.com/go-mysql-org/go-mysql/mysql"
15- gomysql "github.com/go-mysql-org/go-mysql/mysql"
1615 "github.com/pingcap/tidb/util/hack"
1716 "github.com/pingcap/tiproxy/lib/util/errors"
1817 pnet "github.com/pingcap/tiproxy/pkg/proxy/net"
@@ -229,7 +228,7 @@ loop:
229228 var packetErr error
230229 if serverPkt [0 ] == pnet .ErrHeader .Byte () {
231230 packetErr = pnet .ParseErrorPacket (serverPkt )
232- if handshakeHandler .HandleHandshakeErr (cctx , packetErr .(* gomysql .MyError )) {
231+ if handshakeHandler .HandleHandshakeErr (cctx , packetErr .(* mysql .MyError )) {
233232 logger .Warn ("handle handshake error, start reconnect" , zap .Error (err ))
234233 backendIO .Close ()
235234 goto RECONNECT
You can’t perform that action at this time.
0 commit comments