mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-08-01 01:11:58 +00:00
Update futures-timer
to version 2.
This removes the last dependencies to futures-preview.
This commit is contained in:
@@ -17,7 +17,7 @@ ed25519-dalek = "1.0.0-pre.3"
|
|||||||
failure = "0.1"
|
failure = "0.1"
|
||||||
fnv = "1.0"
|
fnv = "1.0"
|
||||||
futures = { version = "0.3.1", features = ["compat", "io-compat", "executor", "thread-pool"] }
|
futures = { version = "0.3.1", features = ["compat", "io-compat", "executor", "thread-pool"] }
|
||||||
futures-timer = "0.3"
|
futures-timer = "2"
|
||||||
lazy_static = "1.2"
|
lazy_static = "1.2"
|
||||||
libsecp256k1 = { version = "0.3.1", optional = true }
|
libsecp256k1 = { version = "0.3.1", optional = true }
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
|
@@ -172,10 +172,9 @@ where
|
|||||||
Poll::Ready(Err(err)) => return Poll::Ready(Err(TransportTimeoutError::Other(err))),
|
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::Pending => Poll::Pending,
|
||||||
Poll::Ready(Ok(())) => Poll::Ready(Err(TransportTimeoutError::Timeout)),
|
Poll::Ready(()) => Poll::Ready(Err(TransportTimeoutError::Timeout))
|
||||||
Poll::Ready(Err(err)) => Poll::Ready(Err(TransportTimeoutError::TimerError(err))),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user