Skip to main content

parse_every

Function parse_every 

Source
pub fn parse_every(value: Option<&str>) -> u64
Expand description

Parse a cadence value.

Explicit numbers honored (0 disables), missing/garbage falls back to DEFAULT_SAMPLE_EVERY. Split out so tests never mutate process-global env (Rust 2024 set_var is unsafe and the crates forbid it).