summaryrefslogtreecommitdiffstats
path: root/examples/echo-threads.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/echo-threads.rs')
-rw-r--r--examples/echo-threads.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/echo-threads.rs b/examples/echo-threads.rs
index 8ac42d0f..6ce8b156 100644
--- a/examples/echo-threads.rs
+++ b/examples/echo-threads.rs
@@ -56,7 +56,7 @@ fn main() {
// shipped round-robin to a particular thread which will associate the
// socket with the corresponding event loop and process the connection.
let mut next = 0;
- let srv = listener.incoming().for_each(|(socket, _)| {
+ let srv = listener.incoming().for_each(|socket| {
channels[next].unbounded_send(socket).expect("worker thread died");
next = (next + 1) % channels.len();
Ok(())