Correct that

This commit is contained in:
Gregor Reitzenstein 2020-03-10 19:37:04 +01:00
parent 88721ed5f0
commit 9a6b338070

View File

@ -172,8 +172,7 @@ fn main() -> Result<(), Error> {
let listeners = listeners_s.await; let listeners = listeners_s.await;
let incoming = stream::select_all(listeners.iter().map(|l| l.incoming())); 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 // For each incoming connection start a new task to handle it
// pool
let handle_sockets = incoming.map(|socket| { let handle_sockets = incoming.map(|socket| {
// incoming.next() is an error when the underlying `accept` call yielded an error // 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 // In POSIX those are protocol errors we can't really handle, so we just log the error