refactor(lib): update to tokio alpha.4

This commit is contained in:
Sean McArthur
2019-08-29 10:42:29 -07:00
parent 536779e16c
commit 5b1feb8a3c
3 changed files with 23 additions and 19 deletions

View File

@@ -134,8 +134,7 @@ impl AddrIncoming {
error!("accept error: {}", e);
// Sleep 1s.
let delay = Instant::now() + Duration::from_secs(1);
let mut timeout = Delay::new(delay);
let mut timeout = tokio_timer::sleep(Duration::from_secs(1));
match Pin::new(&mut timeout).poll(cx) {
Poll::Ready(()) => {