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/chat.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/chat.rs')
-rw-r--r-- | examples/chat.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/chat.rs b/examples/chat.rs index a0023730..f22d6b64 100644 --- a/examples/chat.rs +++ b/examples/chat.rs @@ -33,7 +33,7 @@ use futures::future::Executor; use futures::stream::{self, Stream}; use futures_cpupool::CpuPool; use tokio::net::TcpListener; -use tokio::reactor::Core; +use tokio::reactor::Reactor; use tokio_io::io; use tokio_io::AsyncRead; @@ -42,7 +42,7 @@ fn main() { let addr = addr.parse().unwrap(); // Create the event loop and TCP listener we'll accept connections on. - let mut core = Core::new().unwrap(); + let mut core = Reactor::new().unwrap(); let handle = core.handle(); let socket = TcpListener::bind(&addr, &handle).unwrap(); println!("Listening on: {}", addr); |