Skip to content

Commit

Permalink
fix again
Browse files Browse the repository at this point in the history
Signed-off-by: lhy1024 <admin@liudos.us>
  • Loading branch information
lhy1024 committed Dec 18, 2024
1 parent 120fe68 commit 2e2d7b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/region_syncer/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ func (s *RegionSyncer) StartSyncWithLeader(addr string) {
select {
case <-ctx.Done():
log.Info("stop synchronizing with leader due to context canceled")
timer.Stop()
return
case <-timer.C:
timer.Stop()
Expand All @@ -187,6 +188,7 @@ func (s *RegionSyncer) StartSyncWithLeader(addr string) {
select {
case <-ctx.Done():
log.Info("stop synchronizing with leader due to context canceled")
timer.Stop()
return
case <-timer.C:
timer.Stop()
Expand Down

0 comments on commit 2e2d7b4

Please sign in to comment.