From 2970954191921e2a4bc41857737163900333107c Mon Sep 17 00:00:00 2001 From: billettc Date: Wed, 31 Jan 2024 09:32:00 -0500 Subject: [PATCH] fix max retry --- block/fetcher/rpc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/fetcher/rpc.go b/block/fetcher/rpc.go index 50680471..ce96dd94 100644 --- a/block/fetcher/rpc.go +++ b/block/fetcher/rpc.go @@ -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)