mirror of
https://github.com/fafhrd91/actix-web
synced 2025-06-27 07:19:04 +02:00
fix workers doc
This commit is contained in:
@ -139,3 +139,7 @@ TODO
|
||||
## HttpResponse no longer implements Future
|
||||
|
||||
TODO
|
||||
|
||||
## `#[actix_web::main]` and `#[tokio::main]`
|
||||
|
||||
TODO
|
||||
|
@ -128,7 +128,7 @@ where
|
||||
|
||||
/// Set number of workers to start.
|
||||
///
|
||||
/// By default, server uses number of available logical CPU as thread count.
|
||||
/// By default, the number of available physical CPUs is used as the worker count.
|
||||
pub fn workers(mut self, num: usize) -> Self {
|
||||
self.builder = self.builder.workers(num);
|
||||
self
|
||||
|
Reference in New Issue
Block a user