diff --git a/src/endpoint.rs b/src/endpoint.rs index 76dd341d..0e9895cd 100644 --- a/src/endpoint.rs +++ b/src/endpoint.rs @@ -586,10 +586,10 @@ impl Endpoint { &self.bootstrap_nodes } - fn retry(&self, op: Fn) -> impl futures::Future> + fn retry(&self, op: Fn) -> impl futures::Future> where Fn: FnMut() -> Fut, - Fut: futures::Future>>, + Fut: futures::Future>>, { let backoff = ExponentialBackoff { max_elapsed_time: Some(Duration::from_millis(self.qp2p_config.retry_duration_msec)),