From 078f6c0e738c411015b0cb7e1de4b19a0dd50db9 Mon Sep 17 00:00:00 2001 From: Gleb Pomykalov Date: Wed, 27 Nov 2019 01:57:32 +0300 Subject: [PATCH] Fix early-data --- tests/early-data.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/early-data.rs b/tests/early-data.rs index 7a43034..c69750e 100644 --- a/tests/early-data.rs +++ b/tests/early-data.rs @@ -10,10 +10,11 @@ use std::task::{ Context, Poll }; use std::time::Duration; use tokio::prelude::*; use tokio::net::TcpStream; -use tokio::timer::delay_for; +use tokio::time::delay_for; use futures_util::{ future, ready }; use rustls::ClientConfig; use tokio_rustls::{ TlsConnector, client::TlsStream }; +use std::future::Future; struct Read1(T);