Skip to content

Commit c35dd07

Browse files
committed
Decrease the Diesel pool size to 1
R2D2 tries to immediately populate the pool, and we're running out of connections when it does so. Since Diesel is only used on one endpoint, we don't need 10 connections.
1 parent 203555f commit c35dd07

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.buildpacks

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
https://github.com/rcaught/heroku-buildpack-cmake#e4e2c9e
2-
https://github.com/emk/heroku-buildpack-rust#035823
2+
https://github.com/mmirate/heroku-buildpack-rust#f1cf6643e
33
https://github.com/tonycoco/heroku-buildpack-ember-cli
44
https://github.com/ryandotsmith/nginx-buildpack.git#af813ba
55
https://github.com/sgrif/heroku-buildpack-diesel#43267f2

src/app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ impl App {
5454
.helper_threads(if config.env == ::Env::Production {3} else {1})
5555
.build();
5656
let diesel_db_config = r2d2::Config::builder()
57-
.pool_size(if config.env == ::Env::Production {10} else {1})
57+
.pool_size(if config.env == ::Env::Production {1} else {1})
5858
.helper_threads(if config.env == ::Env::Production {3} else {1})
5959
.build();
6060

0 commit comments

Comments
 (0)