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/echo-udp.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/echo-udp.rs')
-rw-r--r-- | examples/echo-udp.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/echo-udp.rs b/examples/echo-udp.rs index 63171207..0e163efe 100644 --- a/examples/echo-udp.rs +++ b/examples/echo-udp.rs @@ -20,7 +20,7 @@ use std::net::SocketAddr; use futures::{Future, Poll}; use tokio::net::UdpSocket; -use tokio::reactor::Core; +use tokio::reactor::Reactor; struct Server { socket: UdpSocket, @@ -56,7 +56,7 @@ fn main() { // Create the event loop that will drive this server, and also bind the // socket we'll be listening to. - let mut l = Core::new().unwrap(); + let mut l = Reactor::new().unwrap(); let handle = l.handle(); let socket = UdpSocket::bind(&addr, &handle).unwrap(); println!("Listening on: {}", socket.local_addr().unwrap()); |