From 4d741b4de57ac077c646fa6b3a3835fe62532475 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Wed, 27 Dec 2017 13:26:31 -0800 Subject: [PATCH] Fix typos --- src/server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server.rs b/src/server.rs index ff0aa1de..6552e2e3 100644 --- a/src/server.rs +++ b/src/server.rs @@ -379,7 +379,7 @@ impl HttpServer, net::SocketAddr, H, for (addr, sock) in addrs { info!("Starting tls http server on {}", addr); self.accept.push( - start_accept_thread(sock, addr, workers.clone(), self.backlog)); + start_accept_thread(sock, addr, self.backlog, workers.clone())); } // start http server actor @@ -791,7 +791,7 @@ fn start_accept_thread(sock: net::TcpListener, addr: net::SocketAddr, backlog: i sync_mpsc::TryRecvError::Empty => (), sync_mpsc::TryRecvError::Disconnected => return, } - } + }, _ => unreachable!(), } }