diff options
Diffstat (limited to 'examples/tinyhttp.rs')
-rw-r--r-- | examples/tinyhttp.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/tinyhttp.rs b/examples/tinyhttp.rs index 085bb801..f5513992 100644 --- a/examples/tinyhttp.rs +++ b/examples/tinyhttp.rs @@ -39,7 +39,7 @@ use futures_cpupool::CpuPool; use http::{Request, Response, StatusCode}; use http::header::HeaderValue; use tokio::net::TcpStream; -use tokio::reactor::Core; +use tokio::reactor::Reactor; use tokio_io::codec::{Encoder, Decoder}; use tokio_io::{AsyncRead}; @@ -70,7 +70,7 @@ fn main() { } fn worker(rx: mpsc::UnboundedReceiver<net::TcpStream>) { - let mut core = Core::new().unwrap(); + let mut core = Reactor::new().unwrap(); let handle = core.handle(); let pool = CpuPool::new(1); |