Skip to content

Commit 9881593

Browse files
committed
Auto merge of #2212 - jtgeibel:increase-dev-thread-count, r=Turbo87
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`. cc #2204 r? @carols10cents
2 parents b26be00 + 8f7f46e commit 9881593

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)