Skip to content

Commit 8f7f46e

Browse files
committed
Increase the default thread count to 5 in development
When using `conduit-hyper` to serve requests, if the max thread count is reached then new requests are rejected immediately rather than blocking. The fallback value for `SERVER_THREADS` is increased to ease local testing when setting `USE_HYPER=1`. Ref: rust-lang#2204
1 parent 9653391 commit 8f7f46e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
5050
.map(|s| s.parse().expect("SERVER_THREADS was not a valid number"))
5151
.unwrap_or_else(|_| {
5252
if config.env == Env::Development {
53-
1
53+
5
5454
} else {
5555
50
5656
}

0 commit comments

Comments
 (0)