From 9a6b338070ed87868c98594557d38d1639795e14 Mon Sep 17 00:00:00 2001 From: Gregor Reitzenstein Date: Tue, 10 Mar 2020 19:37:04 +0100 Subject: [PATCH] Correct that --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 9fb5400..e8ea4f0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -172,8 +172,7 @@ fn main() -> Result<(), Error> { let listeners = listeners_s.await; let incoming = stream::select_all(listeners.iter().map(|l| l.incoming())); - // For each incoming connection start a new task to handle it and throw it on the thread - // pool + // For each incoming connection start a new task to handle it let handle_sockets = incoming.map(|socket| { // incoming.next() is an error when the underlying `accept` call yielded an error // In POSIX those are protocol errors we can't really handle, so we just log the error