Commit f15fa24e authored by Joshua Gutow's avatar Joshua Gutow

Fix indexer usage of backoff

parent cfd3c2c9
...@@ -35,11 +35,8 @@ func (s *StandardBridge) GetWithdrawalsByBlockRange(ctx context.Context, start, ...@@ -35,11 +35,8 @@ func (s *StandardBridge) GetWithdrawalsByBlockRange(ctx context.Context, start,
End: &end, End: &end,
} }
var iter *bindings.L2StandardBridgeWithdrawalInitiatedIterator iter, err := backoff.Do(ctx, 3, backoff.Exponential(), func() (*bindings.L2StandardBridgeWithdrawalInitiatedIterator, error) {
err := backoff.Do(3, backoff.Exponential(), func() error { return s.l2SB.FilterWithdrawalInitiated(opts, nil, nil, nil)
var err error
iter, err = s.l2SB.FilterWithdrawalInitiated(opts, nil, nil, nil)
return err
}) })
if err != nil { if err != nil {
return nil, err return nil, err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment