mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 16:21:06 +00:00
Update to futures 0.3.9 (#7854)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user