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/udp-codec.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/udp-codec.rs')
-rw-r--r-- | examples/udp-codec.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/udp-codec.rs b/examples/udp-codec.rs index 65a522ca..91fde26d 100644 --- a/examples/udp-codec.rs +++ b/examples/udp-codec.rs @@ -18,7 +18,7 @@ use futures::{Future, Stream, Sink}; use futures::future::Executor; use futures_cpupool::CpuPool; use tokio::net::{UdpSocket, UdpCodec}; -use tokio::reactor::Core; +use tokio::reactor::Reactor; pub struct LineCodec; @@ -39,7 +39,7 @@ impl UdpCodec for LineCodec { fn main() { drop(env_logger::init()); - let mut core = Core::new().unwrap(); + let mut core = Reactor::new().unwrap(); let handle = core.handle(); let pool = CpuPool::new(1); |