Skip to main content

cooldown_delay

Function cooldown_delay 

Source
pub fn cooldown_delay<T>(result: &Result<T, FaucetError>) -> Option<Duration>
Available on crate feature schedule only.
Expand description

Extra delay before the next tick when a run tripped the circuit breaker.

Pure: maps a run result to the advisory cooldown carried by faucet_core::FaucetError::CircuitOpen, or None for any other outcome. The scheduler loop uses this to push the next tick out by at least the cooldown after a fail-fast circuit-open run.