diff options
author | Carl Lerche <me@carllerche.com> | 2018-02-01 10:31:07 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-01 10:31:07 -0800 |
commit | 2e94b658ed161ef7207a8decb20564556e9883f8 (patch) | |
tree | b5ae64e1760a4b648398290f7958cd202a470c8b /examples/chat.rs | |
parent | b9db119b456427d655b651f4f16d4266e6e16d98 (diff) |
Track futures tokio-reform branch (#88)
This patch also updates tests and examples to remove deprecated API
usage.
Diffstat (limited to 'examples/chat.rs')
-rw-r--r-- | examples/chat.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/chat.rs b/examples/chat.rs index 76e689b9..667f0e9a 100644 --- a/examples/chat.rs +++ b/examples/chat.rs @@ -29,7 +29,7 @@ use std::io::{Error, ErrorKind, BufReader}; use std::sync::{Arc, Mutex}; use futures::Future; -use futures::future::Executor; +use futures::future::{self, Executor}; use futures::stream::{self, Stream}; use futures_cpupool::CpuPool; use tokio::net::TcpListener; @@ -134,5 +134,5 @@ fn main() { }); // execute server - srv.wait().unwrap(); + future::blocking(srv).wait().unwrap(); } |