Skip to content

Commit 5da388a

Browse files
authored
backend: fix duplicated import (#390)
Signed-off-by: disksing <[email protected]>
1 parent c9c5817 commit 5da388a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/proxy/backend/authenticator.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)