Skip to main content

merge_split

Function merge_split 

Source
pub fn merge_split(acc: &mut Option<u64>, v: Option<u64>)
Expand description

Option-accumulate for the cache-TTL split buckets: stay None until a split value arrives, then sum. None means “split never reported” — distinct from an explicit zero. Shared by every Usage accumulator that tracks the 5m/1h breakdown (RPC dispatch, subagent loops).