Skip to content

Commit

Permalink
Merge branch 'master' into fix/framed
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Aug 18, 2020
2 parents 5ce18d6 + fecdfcd commit 6c3764f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions actix-server/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changes

## Unreleased

### Changed

* workers must be greater than 0

## [1.0.3] - 2020-05-19

### Changed
Expand Down
3 changes: 2 additions & 1 deletion actix-server/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ impl ServerBuilder {
/// Set number of workers to start.
///
/// By default server uses number of available logical cpu as workers
/// count.
/// count. Workers must be greater than 0.
pub fn workers(mut self, num: usize) -> Self {
assert_ne!(num, 0, "workers must be greater than 0");
self.threads = num;
self
}
Expand Down

0 comments on commit 6c3764f

Please sign in to comment.