diff options
author | Alex Crichton <alex@alexcrichton.com> | 2017-12-05 09:02:07 -0800 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2017-12-05 09:02:07 -0800 |
commit | 108e1a2c1a66a6f0123704e42624b51e9536476f (patch) | |
tree | 627489b7aa04cd2da9cdfdf53172e235fc7a6827 /examples/tinydb.rs | |
parent | 46062794aaedf1d2f8385124fa5b7061317a2527 (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/tinydb.rs')
-rw-r--r-- | examples/tinydb.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/tinydb.rs b/examples/tinydb.rs index bfb0d123..9929e369 100644 --- a/examples/tinydb.rs +++ b/examples/tinydb.rs @@ -54,7 +54,7 @@ use futures::prelude::*; use futures::future::Executor; use futures_cpupool::CpuPool; use tokio::net::TcpListener; -use tokio::reactor::Core; +use tokio::reactor::Reactor; use tokio_io::AsyncRead; use tokio_io::io::{lines, write_all}; @@ -80,11 +80,11 @@ enum Response { } fn main() { - // Parse the address we're going to run this server on, create a `Core`, and + // Parse the address we're going to run this server on, create a `Reactor`, and // set up our TCP listener to accept connections. let addr = env::args().nth(1).unwrap_or("127.0.0.1:8080".to_string()); let addr = addr.parse::<SocketAddr>().unwrap(); - let mut core = Core::new().unwrap(); + let mut core = Reactor::new().unwrap(); let handle = core.handle(); let listener = TcpListener::bind(&addr, &handle).expect("failed to bind"); println!("Listening on: {}", addr); |