diff --git a/cmd/bot/run.go b/cmd/bot/run.go index e797036..f135a71 100644 --- a/cmd/bot/run.go +++ b/cmd/bot/run.go @@ -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 } } }