mirror of
https://github.com/actix/actix-web.git
synced 2025-01-04 06:18:51 +00:00
fix HttpServer::listen method
This commit is contained in:
parent
b06cf32329
commit
67bf0ae79f
1 changed files with 2 additions and 1 deletions
|
@ -177,8 +177,9 @@ impl<H> HttpServer<H> where H: IntoHttpHandler + 'static
|
|||
///
|
||||
/// HttpServer does not change any configuration for TcpListener,
|
||||
/// it needs to be configured before passing it to listen() method.
|
||||
pub fn listen(mut self, lst: net::TcpListener) {
|
||||
pub fn listen(mut self, lst: net::TcpListener) -> Self {
|
||||
self.sockets.insert(lst.local_addr().unwrap(), lst);
|
||||
self
|
||||
}
|
||||
|
||||
/// The socket address to bind
|
||||
|
|
Loading…
Reference in a new issue