We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 71791be + cdf6709 commit 63d3b30Copy full SHA for 63d3b30
src/app.rs
@@ -49,10 +49,11 @@ impl App {
49
50
let db_config = r2d2::Config::builder()
51
.pool_size(if config.env == ::Env::Production {10} else {1})
52
+ .min_idle(if config.env == ::Env::Production {Some(5)} else {None})
53
.helper_threads(if config.env == ::Env::Production {3} else {1})
54
.build();
55
let diesel_db_config = r2d2::Config::builder()
- .pool_size(if config.env == ::Env::Production {50} else {1})
56
+ .pool_size(if config.env == ::Env::Production {30} else {1})
57
.min_idle(if config.env == ::Env::Production {Some(5)} else {None})
58
59
0 commit comments