Skip to main content

scheduled_claim_renew_interval

Function scheduled_claim_renew_interval 

Source
pub fn scheduled_claim_renew_interval(claim_ttl: Duration) -> Duration
Expand description

Derives the claim renewal tick from the claim TTL.

Renewing three times per TTL window means two consecutive missed ticks still leave one renewal before expiry. The floor keeps tokio::time::interval away from a zero period for pathological TTLs.