1
0
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:
Rob Ede
2022-02-08 06:58:26 +00:00
parent b653bf557f
commit b0fbe0dfd8
3 changed files with 16 additions and 3 deletions

View File

@ -139,3 +139,7 @@ TODO
## HttpResponse no longer implements Future
TODO
## `#[actix_web::main]` and `#[tokio::main]`
TODO

View File

@ -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