summaryrefslogtreecommitdiffstats
path: root/benches/latency.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2017-12-05 09:02:07 -0800
committerAlex Crichton <alex@alexcrichton.com>2017-12-05 09:02:07 -0800
commit108e1a2c1a66a6f0123704e42624b51e9536476f (patch)
tree627489b7aa04cd2da9cdfdf53172e235fc7a6827 /benches/latency.rs
parent46062794aaedf1d2f8385124fa5b7061317a2527 (diff)
Blanket rename `Core` to `Reactor`
This commit uses a script to rename `Core` to `Reactor` all at once, notably: find . -name '*.rs' | xargs sed -i 's/\bCore\b/Reactor/g'
Diffstat (limited to 'benches/latency.rs')
-rw-r--r--benches/latency.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/benches/latency.rs b/benches/latency.rs
index fd34c0e6..246d033b 100644
--- a/benches/latency.rs
+++ b/benches/latency.rs
@@ -16,7 +16,7 @@ use futures::sync::mpsc;
use futures::{Future, Poll, Sink, Stream};
use test::Bencher;
use tokio::net::UdpSocket;
-use tokio::reactor::Core;
+use tokio::reactor::Reactor;
/// UDP echo server
struct EchoServer {
@@ -59,7 +59,7 @@ fn udp_echo_latency(b: &mut Bencher) {
let (tx, rx) = oneshot::channel();
let child = thread::spawn(move || {
- let mut l = Core::new().unwrap();
+ let mut l = Reactor::new().unwrap();
let handle = l.handle();
let socket = tokio::net::UdpSocket::bind(&any_addr, &handle).unwrap();