summaryrefslogtreecommitdiffstats
path: root/benches/latency.rs
diff options
context:
space:
mode:
Diffstat (limited to 'benches/latency.rs')
-rw-r--r--benches/latency.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/benches/latency.rs b/benches/latency.rs
index c2619b71..d9ace03a 100644
--- a/benches/latency.rs
+++ b/benches/latency.rs
@@ -10,8 +10,8 @@ use std::io;
use std::net::SocketAddr;
use std::thread;
-use futures::sync::oneshot;
use futures::sync::mpsc;
+use futures::sync::oneshot;
use futures::{Future, Poll, Sink, Stream};
use test::Bencher;
use tokio::net::UdpSocket;
@@ -57,7 +57,6 @@ fn udp_echo_latency(b: &mut Bencher) {
let (tx, rx) = oneshot::channel();
let child = thread::spawn(move || {
-
let socket = tokio::net::UdpSocket::bind(&any_addr).unwrap();
tx.send(socket.local_addr().unwrap()).unwrap();
@@ -67,7 +66,6 @@ fn udp_echo_latency(b: &mut Bencher) {
server.wait().unwrap();
});
-
let client = std::net::UdpSocket::bind(&any_addr).unwrap();
let server_addr = rx.wait().unwrap();