mirror of https://github.com/fafhrd91/actix-net
Update actix-utils to tokio 0.2
This commit is contained in:
parent
dca7cad09d
commit
99e0a45d0d
|
@ -3,9 +3,9 @@ use std::future::Future;
|
|||
use std::marker::PhantomData;
|
||||
use std::pin::Pin;
|
||||
use std::task::{Context, Poll};
|
||||
use std::time::{Duration, Instant};
|
||||
use std::time::Duration;
|
||||
|
||||
use actix_rt::time::{delay, Delay};
|
||||
use actix_rt::time::{delay_until, Delay, Instant};
|
||||
use actix_service::{Service, ServiceFactory};
|
||||
use futures::future::{ok, Ready};
|
||||
|
||||
|
@ -87,7 +87,7 @@ where
|
|||
ka,
|
||||
time,
|
||||
expire,
|
||||
delay: delay(expire),
|
||||
delay: delay_until(expire),
|
||||
_t: PhantomData,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
use std::convert::Infallible;
|
||||
use std::task::{Context, Poll};
|
||||
use std::time::{self, Duration, Instant};
|
||||
use std::time::{self, Duration};
|
||||
|
||||
use actix_rt::time::delay_for;
|
||||
use actix_rt::time::{delay_for, Instant};
|
||||
use actix_service::{Service, ServiceFactory};
|
||||
use futures::future::{ok, ready, FutureExt, Ready};
|
||||
|
||||
|
|
Loading…
Reference in New Issue