Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaodino committed Mar 18, 2024
1 parent c8da85b commit f36d1c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/relayer/indexer/indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ func (i *Indexer) Start() error {
slog.Error("filter failed, will retry", "error", err)
}
return err
}, backoff.NewConstantBackOff(5*time.Second)); err != nil {
}, backoff.WithContext(backoff.NewConstantBackOff(5*time.Second), i.ctx)); err != nil {
slog.Error("error after retrying filter with backoff", "error", err)
}
}()
Expand All @@ -236,7 +236,7 @@ func (i *Indexer) Start() error {
slog.Error("scanBlocks failed, will retry", "error", err)
}
return err
}, backoff.NewConstantBackOff(5*time.Second)); err != nil {
}, backoff.WithContext(backoff.NewConstantBackOff(5*time.Second), i.ctx)); err != nil {
slog.Error("scan blocks backoff retry", "error", err)
}
}()
Expand All @@ -248,7 +248,7 @@ func (i *Indexer) Start() error {
slog.Error("i.queue.Notify failed, will retry", "error", err)
}
return err
}, backoff.NewConstantBackOff(5*time.Second)); err != nil {
}, backoff.WithContext(backoff.NewConstantBackOff(5*time.Second), i.ctx)); err != nil {
slog.Error("i.queue.Notify backoff retry", "error", err)
}
}()
Expand Down

0 comments on commit f36d1c0

Please sign in to comment.