mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 11:07:56 +00:00
Update to futures 0.3.9 (#7854)
This commit is contained in:
@@ -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