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/tinydb.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/tinydb.rs')
-rw-r--r-- | examples/tinydb.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/tinydb.rs b/examples/tinydb.rs index 0a68a314..de750404 100644 --- a/examples/tinydb.rs +++ b/examples/tinydb.rs @@ -51,7 +51,7 @@ use std::net::SocketAddr; use std::sync::{Arc, Mutex}; use futures::prelude::*; -use futures::future::Executor; +use futures::future::{self, Executor}; use futures_cpupool::CpuPool; use tokio::net::TcpListener; use tokio_io::AsyncRead; @@ -160,7 +160,7 @@ fn main() { Ok(()) }); - done.wait().unwrap(); + future::blocking(done).wait().unwrap(); } impl Request { |