Skip to content

Commit ab553e2

Browse files
authored
Fix hard-coded retry limits being used instead of REQUEST_RETRIES (#3010)
1 parent 4684fd0 commit ab553e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chain/ethereum/src/ethereum_adapter.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ impl EthereumAdapter {
478478
Ok(_) | Err(EthereumContractCallError::Revert(_)) => false,
479479
Err(_) => true,
480480
})
481-
.limit(10)
481+
.limit(*REQUEST_RETRIES)
482482
.timeout_secs(*JSON_RPC_TIMEOUT)
483483
.run(move || {
484484
let call_data = call_data.clone();
@@ -1072,7 +1072,7 @@ impl EthereumAdapterTrait for EthereumAdapter {
10721072
// transaction never made it back into the main chain.
10731073
Box::new(
10741074
retry("batch eth_getTransactionReceipt RPC call", &logger)
1075-
.limit(16)
1075+
.limit(*REQUEST_RETRIES)
10761076
.no_logging()
10771077
.timeout_secs(*JSON_RPC_TIMEOUT)
10781078
.run(move || {

0 commit comments

Comments
 (0)