Skip to content

Commit 40ca552

Browse files
committed
ethereum: increase default json rpc timeout
1 parent 836e44d commit 40ca552

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

chain/ethereum/src/ethereum_adapter.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ lazy_static! {
4646
.expect("invalid ETHEREUM_BLOCK_BATCH_SIZE env var");
4747

4848
/// This should not be too large that it causes requests to timeout without us catching it, nor
49-
/// too small that it causes us to timeout requests that would've succeeded.
49+
/// too small that it causes us to timeout requests that would've succeeded. We've seen
50+
/// successful `eth_getLogs` requests take over 120 seconds.
5051
static ref JSON_RPC_TIMEOUT: u64 = std::env::var("GRAPH_ETHEREUM_JSON_RPC_TIMEOUT")
51-
.unwrap_or("120".into())
52+
.unwrap_or("180".into())
5253
.parse::<u64>()
5354
.expect("invalid GRAPH_ETHEREUM_JSON_RPC_TIMEOUT env var");
5455

0 commit comments

Comments
 (0)