Skip to main content

MAX_DELAY_MS

Constant MAX_DELAY_MS 

Source
pub const MAX_DELAY_MS: u64 = 30_000;
Expand description

Upper bound on the exponential term (before jitter), in milliseconds.

Without a cap, 2^attempt overflows and, well before that, produces absurd multi-hour sleeps for large retry counts.