chore(dependencies): update tokio, h2, and tower-make

This commit is contained in:
Taiki Endo
2019-09-24 03:35:21 +09:00
committed by Sean McArthur
parent dc54ee199f
commit 053d6497bd
5 changed files with 33 additions and 33 deletions

View File

@@ -470,7 +470,7 @@ impl ConnectingTcp {
local_addr,
preferred: ConnectingTcpRemote::new(preferred_addrs),
fallback: Some(ConnectingTcpFallback {
delay: tokio_timer::sleep(fallback_timeout),
delay: tokio_timer::delay_for(fallback_timeout),
remote: ConnectingTcpRemote::new(fallback_addrs),
}),
reuse_address,

View File

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