Skip to content

Commit

Permalink
fix: ticker does not work expectly
Browse files Browse the repository at this point in the history
  • Loading branch information
bendanzhentan committed Nov 24, 2023
1 parent 0d8f9dc commit c5fcd17
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/bot/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,10 @@ func ProcessBotDelegatedWithdrawals(ctx context.Context, log log.Logger, db *gor
for {
select {
case <-ticker.C:
case <-ctx.Done():
return
default:
ProcessUnprovenBotDelegatedWithdrawals(ctx, log, db, l1Client, l2Client, cfg)
ProcessUnfinalizedBotDelegatedWithdrawals(ctx, log, db, l1Client, l2Client, cfg)
case <-ctx.Done():
return
}
}
}
Expand Down

0 comments on commit c5fcd17

Please sign in to comment.