1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-11-25 11:01:14 +00:00

fix workers doc

This commit is contained in:
Rob Ede 2022-02-08 06:58:26 +00:00
parent b653bf557f
commit b0fbe0dfd8
No known key found for this signature in database
GPG key ID: 97C636207D3EF933
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

View file

@ -9,7 +9,16 @@ unreleased_for() {
DIR=$1
CARGO_MANIFEST=$DIR/Cargo.toml
# determine changelog file name
if [ -f "$DIR/CHANGES.md" ]; then
CHANGELOG_FILE=$DIR/CHANGES.md
elif [ -f "$DIR/CHANGELOG.md" ]; then
CHANGELOG_FILE=$DIR/CHANGELOG.md
else
echo "No changelog file found"
exit 1
fi
# get current version
PACKAGE_NAME="$(sed -nE 's/^name ?= ?"([^"]+)"$/\1/ p' "$CARGO_MANIFEST" | head -n 1)"
@ -36,6 +45,6 @@ unreleased_for() {
cat "$CHANGE_CHUNK_FILE"
}
for f in $(fd --absolute-path CHANGES.md); do
for f in $(fd --absolute-path 'CHANGE\w+.md'); do
unreleased_for $(dirname $f)
done