Skip to content

Commit

Permalink
fix bug of br checkpoint ticker leak
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcelliu committed Dec 5, 2022
1 parent a7c4c71 commit 627db90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions br/pkg/checkpoint/checkpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ func (r *CheckpointRunner) startCheckpointLoop(ctx context.Context, tickDuration
var wg sync.WaitGroup
errCh := r.startCheckpointRunner(cctx, &wg)
ticker := time.NewTicker(tickDuration)
defer ticker.Stop()
for {
select {
case <-ctx.Done():
Expand Down

0 comments on commit 627db90

Please sign in to comment.