Skip to content

Commit

Permalink
Update vms/evm/subscriber.go
Browse files Browse the repository at this point in the history
Co-authored-by: cam-schultz <78878559+cam-schultz@users.noreply.github.com>
Signed-off-by: Ian Suvak <ian.suvak@avalabs.org>
  • Loading branch information
iansuvak and cam-schultz authored Aug 21, 2024
1 parent 17ab31b commit 17c6588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vms/evm/subscriber.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func (s *subscriber) getHeaderByNumberRetryable(headerNumber *big.Int) (*types.H
zap.Int("attempt", attempt),
zap.Error(err),
)
if attempt == rpcMaxRetries {
if attempt >= rpcMaxRetries {
return nil, err
}
time.Sleep(subscribeRetryTimeout)
Expand Down

0 comments on commit 17c6588

Please sign in to comment.