Skip to main content

webhook_backoff_delay

Function webhook_backoff_delay 

Source
pub fn webhook_backoff_delay(attempt: u32) -> Duration
Expand description

Compute an exponential-backoff delay for webhook startup retries.

Uses subsecond wall-clock bits as a cheap jitter source — no rand crate needed. Delay is capped at 30 s.