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:
@@ -50,7 +50,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
.map(|s| s.parse().expect("SERVER_THREADS was not a valid number"))
.unwrap_or_else(|_| {
if config.env == Env::Development {
- 1
+ 5
} else {
50
}
