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.
1 parent 3ac821e commit 9e4fae7Copy full SHA for 9e4fae7
src/app.rs
@@ -49,6 +49,7 @@ 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()
0 commit comments