Skip to content

Commit

Permalink
fix(api): rename type parameter after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
lionel-faber authored and joshuef committed Aug 3, 2021
1 parent 738c0cd commit 8b2ad02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -586,10 +586,10 @@ impl<I: ConnId> Endpoint<I> {
&self.bootstrap_nodes
}

fn retry<I, E, Fn, Fut>(&self, op: Fn) -> impl futures::Future<Output = Result<I, E>>
fn retry<R, E, Fn, Fut>(&self, op: Fn) -> impl futures::Future<Output = Result<R, E>>
where
Fn: FnMut() -> Fut,
Fut: futures::Future<Output = Result<I, backoff::Error<E>>>,
Fut: futures::Future<Output = Result<R, backoff::Error<E>>>,
{
let backoff = ExponentialBackoff {
max_elapsed_time: Some(Duration::from_millis(self.qp2p_config.retry_duration_msec)),
Expand Down

0 comments on commit 8b2ad02

Please sign in to comment.