summaryrefslogtreecommitdiffstats
path: root/examples/echo-udp.rs
diff options
context:
space:
mode:
authorCarl Lerche <me@carllerche.com>2018-02-06 07:26:21 -0800
committerGitHub <noreply@github.com>2018-02-06 07:26:21 -0800
commitf0ea9d6f4c0a734ac4c235630f3d8cc51fb48f51 (patch)
tree011aae238269ce6ba1cf29013126e4e45fea4cd4 /examples/echo-udp.rs
parent567887cc75170437f75f19f5966f2b32bf49ab72 (diff)
Switch back to futures from crates.io (#113)
Doing so requires copying the `current_thread` executor from GitHub into the repo.
Diffstat (limited to 'examples/echo-udp.rs')
-rw-r--r--examples/echo-udp.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/echo-udp.rs b/examples/echo-udp.rs
index 2ce43bc0..f7e2bf09 100644
--- a/examples/echo-udp.rs
+++ b/examples/echo-udp.rs
@@ -18,7 +18,7 @@ extern crate tokio_io;
use std::{env, io};
use std::net::SocketAddr;
-use futures::{future, Future, Poll};
+use futures::{Future, Poll};
use tokio::net::UdpSocket;
struct Server {
@@ -58,9 +58,9 @@ fn main() {
// Next we'll create a future to spawn (the one we defined above) and then
// we'll block our current thread waiting on the result of the future
- future::blocking(Server {
+ Server {
socket: socket,
buf: vec![0; 1024],
to_send: None,
- }).wait().unwrap();
+ }.wait().unwrap();
}