Update to futures 0.3.9 (#7854)

This commit is contained in:
Pierre Krieger
2021-01-08 16:47:33 +01:00
committed by GitHub
parent 467599df13
commit a4032b1dfb
26 changed files with 121 additions and 121 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ bytes = "0.5"
sc-client-api = { version = "2.0.0", path = "../api" }
sp-api = { version = "2.0.0", path = "../../primitives/api" }
fnv = "1.0.6"
futures = "0.3.4"
futures = "0.3.9"
futures-timer = "3.0.1"
log = "0.4.8"
threadpool = "1.7"
@@ -52,7 +52,7 @@ pub fn timestamp_from_now(timestamp: Timestamp) -> Duration {
/// If `None`, returns a never-ending `Future`.
pub fn deadline_to_future(
deadline: Option<Timestamp>,
) -> futures::future::MaybeDone<impl futures::Future> {
) -> futures::future::MaybeDone<impl futures::Future<Output = ()>> {
use futures::future::{self, Either};
future::maybe_done(match deadline.map(timestamp_from_now) {