Skip to main content

RETRY_BACKOFF_MS

Constant RETRY_BACKOFF_MS 

Source
pub const RETRY_BACKOFF_MS: u64 = 1_000;
Expand description

First wait when a rate-limit refusal carries no hint; each further wait doubles it.

A doubling schedule from one second reaches a minute in six waits, which is GitHub’s own advice for a secondary limit — wait, and wait longer each time — without spending the first minute of a transient refusal doing nothing.