Skip to main content

fold_streak

Function fold_streak 

Source
pub(super) fn fold_streak(
    window_secs: u64,
    state: Option<Streak>,
    bucket: u64,
    value: &[u8],
) -> Streak
Expand description

Folds one failure row into a server’s running streak: the newest row sets the class and anchor, the oldest bucket is retained.