Skip to main content

heartbeat_interval

Function heartbeat_interval 

Source
pub(crate) fn heartbeat_interval(
    explicit_ms: Option<u64>,
    lease_ttl_secs: f64,
) -> Duration
Expand description

Heartbeat period: explicit --heartbeat-interval-ms, else a third of the lease TTL (clamped to at least 1s so a tiny TTL can’t busy-loop).