Skip to main content

should_warn_full

Function should_warn_full 

Source
pub fn should_warn_full(
    barrier: &'static str,
    result: InsertIfAbsentNoEvictResult,
) -> bool
Expand description

Return true at most once per barrier per minute for a full-barrier rejection. Metrics still record every rejection; this only prevents an attacker from turning saturation into unbounded warning-log volume.