1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 06:39:22 +02:00

pass local addr to channel; use bitflags

This commit is contained in:
Nikolay Kim
2017-12-07 21:52:46 -08:00
parent 3f06439d3e
commit b71ddf7b4c
9 changed files with 190 additions and 126 deletions

View File

@ -39,7 +39,7 @@ fn test_serve_incoming() {
Application::new("/")
.resource("/", |r| r.method(Method::GET).h(httpcodes::HTTPOk)));
let tcp = TcpListener::from_listener(tcp, &addr2, Arbiter::handle()).unwrap();
srv.serve_incoming::<_, ()>(tcp.incoming()).unwrap();
srv.serve_incoming::<_, ()>(tcp.incoming(), false).unwrap();
sys.run();
});