mirror of
https://github.com/actix/actix-website
synced 2024-12-18 01:43:59 +01:00
Fix outdated info in Server->Multi-Threading section of docs
taken from ##276
This commit is contained in:
parent
f33180bf8a
commit
1d338f74de
@ -20,7 +20,7 @@ After the `bind` is successful, use [`HttpServer::run()`][httpserver_run] to ret
|
|||||||
|
|
||||||
## Multi-Threading
|
## Multi-Threading
|
||||||
|
|
||||||
`HttpServer` automatically starts a number of HTTP _workers_, by default this number is equal to the number of logical CPUs in the system. This number can be overridden with the [`HttpServer::workers()`][workers] method.
|
`HttpServer` automatically starts a number of HTTP _workers_, by default this number is equal to the number of physical CPUs in the system. This number can be overridden with the [`HttpServer::workers()`][workers] method.
|
||||||
|
|
||||||
<CodeBlock example="server" file="workers.rs" section="workers" />
|
<CodeBlock example="server" file="workers.rs" section="workers" />
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user