mirror of
https://github.com/fafhrd91/actix-net
synced 2025-06-28 06:20:36 +02:00
cleanups
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user