We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10b4f22 commit c76ed4bCopy full SHA for c76ed4b
node/src/api/client.rs
@@ -28,8 +28,8 @@ const DEFAULT_RETRIES: usize = 0;
28
29
// Exponential backup
30
const INITIAL_WAIT_MS: u64 = 250;
31
-const EXP_MULTIPLE: u64 = 250;
32
const MAXIMUM_WAIT_MS: u64 = 32_000;
+const EXP_BASE: u64 = 2;
33
34
// Avoid `Method::` prefix. Associated constants can't be imported
35
const GET: Method = Method::GET;
@@ -218,7 +218,7 @@ impl LexeApiClient {
218
219
220
let mut backup_durations = (0..)
221
- .map(|index| INITIAL_WAIT_MS * EXP_MULTIPLE.pow(index))
+ .map(|index| INITIAL_WAIT_MS * EXP_BASE.pow(index))
222
.map(|wait| min(wait, MAXIMUM_WAIT_MS))
223
.map(Duration::from_millis);
224
0 commit comments