summaryrefslogtreecommitdiffstats
path: root/examples/tinyhttp.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 /examples/tinyhttp.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 'examples/tinyhttp.rs')
-rw-r--r--examples/tinyhttp.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/tinyhttp.rs b/examples/tinyhttp.rs
index 085bb801..f5513992 100644
--- a/examples/tinyhttp.rs
+++ b/examples/tinyhttp.rs
@@ -39,7 +39,7 @@ use futures_cpupool::CpuPool;
use http::{Request, Response, StatusCode};
use http::header::HeaderValue;
use tokio::net::TcpStream;
-use tokio::reactor::Core;
+use tokio::reactor::Reactor;
use tokio_io::codec::{Encoder, Decoder};
use tokio_io::{AsyncRead};
@@ -70,7 +70,7 @@ fn main() {
}
fn worker(rx: mpsc::UnboundedReceiver<net::TcpStream>) {
- let mut core = Core::new().unwrap();
+ let mut core = Reactor::new().unwrap();
let handle = core.handle();
let pool = CpuPool::new(1);