1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-28 06:20:36 +02:00
This commit is contained in:
Nikolay Kim
2018-08-21 21:11:16 -07:00
parent 0f8cd0f44d
commit 29490e6c13
8 changed files with 18 additions and 216 deletions

View File

@ -83,6 +83,9 @@ fn main() {
Ok::<_, io::Error>(ServiceState { num: num.clone() })
}));
// bind socket address and start workers. By default server uses number of
// available logical cpu as threads count. actix net start separate
// instances of service pipeline in each worker.
Server::default().bind("0.0.0.0:8443", srv).unwrap().start();
sys.run();