federate_retry_sleep_duration

Function federate_retry_sleep_duration 

Source
pub fn federate_retry_sleep_duration(retry_count: i32) -> Duration
Expand description

Calculate how long to sleep until next federation send based on how many retries have already happened. Uses exponential backoff with maximum of one day. The first error is ignored.