Skip to main content

is_waiting_to_probe

Function is_waiting_to_probe 

Source
pub fn is_waiting_to_probe<T: PartialOrd>(
    consecutive_failures: u32,
    open_until: Option<T>,
    now: T,
) -> bool
Expand description

Whether a breaker with this run of failures and cooldown is past the cooldown without the success that closes it: what is_half_open asks of a live breaker, for one read back from the database.