Skip to content

Commit 56d5b78

Browse files
committed
fix
1 parent b78bcee commit 56d5b78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

replication/binlogsyncer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ func (b *BinlogSyncer) newConnection() (*client.Conn, error) {
872872
addr = b.cfg.Host
873873
}
874874

875-
ctx, cancel := context.WithTimeout(b.ctx, time.Second*10)
875+
ctx, cancel := context.WithTimeout(context.Background(), time.Second*10)
876876
defer cancel()
877877

878878
return client.ConnectWithDialer(ctx, "", addr, b.cfg.User, b.cfg.Password,

0 commit comments

Comments
 (0)