db: set max pool size to 15

Signed-off-by: SphericalKat <amolele@gmail.com>
This commit is contained in:
sphericalkat committed 2020-11-22 20:20:21 +05:30
1 parent 43df413e57
commit 1a5cb0d718
1 file changed
+1 -1
+1 -1
View File
@@ -7,7 +7,7 @@ pub type Pool = r2d2::Pool<ConnectionManager<PgConnection>>;
pub fn pool() -> Pool {
let manager = ConnectionManager::<PgConnection>::new(database_url());
Pool::new(manager).expect("db pool")
Pool::builder().max_size(15).build(manager).unwrap()
}
fn database_url() -> String {