Skip to main content

retry_after

Function retry_after 

Source
pub(super) fn retry_after(backoff: &PeerBackoff, now: u64) -> Option<Duration>
Expand description

Computes the remaining delay before the peer becomes eligible.

The delay is measured from the newest failure; an expired backoff yields None.