Skip to main content

MAX_ATTEMPTS_CAP

Constant MAX_ATTEMPTS_CAP 

Source
pub const MAX_ATTEMPTS_CAP: u32 = 16;
Expand description

Most attempts a RetryPolicy can ever make, whatever max_attempts says.

A policy is configuration, and configuration can be wrong; this cap keeps a mistyped max_attempts from turning one send into an unbounded series of requests.