Skip to content

Commit

Permalink
fix max retry
Browse files Browse the repository at this point in the history
  • Loading branch information
billettc committed Jan 31, 2024
1 parent b006b5c commit 2970954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/fetcher/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (f *RPCFetcher) fetch(ctx context.Context, requestedSlot uint64) (*rpc.GetB
var out *rpc.GetBlockResult
skipped := false
//f.logger.Info("getting block", zap.Uint64("block_num", currentSlot))
err := derr.Retry(math.MaxFloat32, func(ctx context.Context) error {
err := derr.Retry(math.MaxUint64, func(ctx context.Context) error {
var innerErr error
out, innerErr = f.rpcClient.GetBlockWithOpts(ctx, requestedSlot, GetBlockOpts)

Expand Down

0 comments on commit 2970954

Please sign in to comment.