Skip to content

Commit 7c23825

Browse files
authored
fix: increase rate limiting retries (#5069)
1 parent 454dc3f commit 7c23825

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/short-rats-double.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@nomicfoundation/edr": patch
3+
---
4+
5+
fix: increase rate limiting retries

crates/edr_eth/src/remote/client.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ const TMP_DIR: &str = "tmp";
5151
// Retry parameters for rate limited requests.
5252
const EXPONENT_BASE: u32 = 2;
5353
const MIN_RETRY_INTERVAL: Duration = Duration::from_secs(1);
54-
const MAX_RETRY_INTERVAL: Duration = Duration::from_secs(16);
55-
const MAX_RETRIES: u32 = 7;
54+
const MAX_RETRY_INTERVAL: Duration = Duration::from_secs(32);
55+
const MAX_RETRIES: u32 = 9;
5656

5757
/// Specialized error types
5858
#[derive(Debug, thiserror::Error)]

0 commit comments

Comments
 (0)