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/proxy.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/proxy.rs')
-rw-r--r-- | examples/proxy.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/proxy.rs b/examples/proxy.rs index 14a63a7f..9d77c54f 100644 --- a/examples/proxy.rs +++ b/examples/proxy.rs @@ -31,7 +31,7 @@ use futures::{Future, Poll}; use futures::future::Executor; use futures_cpupool::CpuPool; use tokio::net::{TcpListener, TcpStream}; -use tokio::reactor::Core; +use tokio::reactor::Reactor; use tokio_io::{AsyncRead, AsyncWrite}; use tokio_io::io::{copy, shutdown}; @@ -43,7 +43,7 @@ fn main() { let server_addr = server_addr.parse::<SocketAddr>().unwrap(); // Create the event loop that will drive this server. - let mut l = Core::new().unwrap(); + let mut l = Reactor::new().unwrap(); let handle = l.handle(); let pool = CpuPool::new(1); |