Skip to content

Commit 91ef5bb

Browse files
authored
Merge branch 'master' into math-bits
2 parents aa908a4 + c729fe3 commit 91ef5bb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

replication/backup.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ func (b *BinlogSyncer) StartBackupWithHandler(p mysql.Position, timeout time.Dur
6969
}
7070
}()
7171

72-
for {
73-
ctx, cancel := context.WithTimeout(context.Background(), timeout)
74-
defer cancel()
72+
ctx, cancel := context.WithTimeout(context.Background(), timeout)
73+
defer cancel()
7574

75+
for {
7676
select {
7777
case <-ctx.Done():
7878
return nil

0 commit comments

Comments
 (0)