Skip to main content

record_failure

Function record_failure 

Source
pub(super) fn record_failure(
    scope: &ScopeKey,
    target: BreakerTarget,
    base_cooldown: Duration,
) -> Option<BreakerTrip>
Expand description

Returns what this failure did to the breaker, if it tripped or re-tripped it. base_cooldown is the first trip’s; a failure while half-open trips again at once, for longer.