Skip to main content

parse_rate

Function parse_rate 

Source
pub fn parse_rate(s: &str) -> Result<(u32, f64), String>
Expand description

Parse "<burst>/<per>s" — ONE rate spelling across the config surface (a2a.principals[].quotas.rate, webhook rate, step rate). Returns (burst, window seconds).