fn backoff<E>(retries: usize, error: &E) -> retry::Recovery {
        Backoff::with_delay(Duration::from_millis(100))
            // .exponential(2.0)
            .jitter(Duration::from_millis(10))
            .max_delay(Some(Duration::from_secs(1)))
            .build(Recovery::ReconnectAfter)(retries, error)
    }
// The backoff strategy used during error recovery
The backoff strategy used during error recovery
The backoff strategy used during error recovery
fn backoff<E>(retries: usize, error: &E) -> retry::Recovery {
        Backoff::with_delay(Duration::from_millis(100))
            // .exponential(2.0)
            .jitter(Duration::from_millis(10))
            .max_delay(Some(Duration::from_secs(1)))
            .build(Recovery::ReconnectAfter)(retries, error)
    }
fn backoff < E > ( retries : usize , error : & E ) -> retry :: Recovery { Backoff :: with_delay ( Duration :: from_millis ( 100 ) ) // .exponential(2.0) . jitter ( Duration :: from_millis ( 10 ) ) . max_delay ( Some ( Duration :: from_secs ( 1 ) ) ) . build ( Recovery :: ReconnectAfter ) ( retries , error ) }
The backoff strategy used during error recovery
The backoff strategy used during error recovery
retries
usize
error
&E