Skip to content

Commit

Permalink
Remove ctx timeout (#1408)
Browse files Browse the repository at this point in the history
This is causing GetAllStreams to timeout.
  • Loading branch information
jterzis authored Nov 2, 2024
1 parent 73781ab commit 50ba734
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions core/node/registries/river_registry_contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package registries
import (
"context"
"math/big"
"time"

"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/abi"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 50ba734

Please sign in to comment.