mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-07-31 00:41:59 +00:00
Update futures-timer
to version 2.
This removes the last dependencies to futures-preview.
This commit is contained in:
@@ -172,10 +172,9 @@ where
|
||||
Poll::Ready(Err(err)) => return Poll::Ready(Err(TransportTimeoutError::Other(err))),
|
||||
}
|
||||
|
||||
match TryFuture::try_poll(Pin::new(&mut this.timer), cx) {
|
||||
match Pin::new(&mut this.timer).poll(cx) {
|
||||
Poll::Pending => Poll::Pending,
|
||||
Poll::Ready(Ok(())) => Poll::Ready(Err(TransportTimeoutError::Timeout)),
|
||||
Poll::Ready(Err(err)) => Poll::Ready(Err(TransportTimeoutError::TimerError(err))),
|
||||
Poll::Ready(()) => Poll::Ready(Err(TransportTimeoutError::Timeout))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user