Skip to main content

log_rate_limit_once

Function log_rate_limit_once 

Source
pub(crate) fn log_rate_limit_once(
    flag: &AtomicBool,
    env_filter: &str,
    retry_after_secs: Option<u64>,
)
Expand description

Log a single ERROR on the first 429, deduped via flag. env_filter is the active ESPRESSO_NODE_TELEMETRY_LOG; retry_after_secs is the parsed Retry-After header, if numeric.