From 50ba734e9fd7f1ac3c7005950c9b5af68b643932 Mon Sep 17 00:00:00 2001 From: John Terzis Date: Fri, 1 Nov 2024 21:23:01 -0700 Subject: [PATCH] Remove ctx timeout (#1408) This is causing GetAllStreams to timeout. --- core/node/registries/river_registry_contract.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/core/node/registries/river_registry_contract.go b/core/node/registries/river_registry_contract.go index b9a9a3d06..c0629d008 100644 --- a/core/node/registries/river_registry_contract.go +++ b/core/node/registries/river_registry_contract.go @@ -3,7 +3,6 @@ package registries import ( "context" "math/big" - "time" "github.com/ethereum/go-ethereum" "github.com/ethereum/go-ethereum/accounts/abi" @@ -293,10 +292,6 @@ func (c *RiverRegistryContract) ForAllStreams( // TODO: setting const pageSize = int64(1000) - // Add a lengthier timeout for this call in excess of rpc node timeout - ctx, cancel := context.WithTimeout(ctx, 5*time.Minute) - defer cancel() - lastPage := false var err error var streams []river.StreamWithId