diff --git a/src/utils/db.rs b/src/utils/db.rs index 360477f..6532e46 100644 --- a/src/utils/db.rs +++ b/src/utils/db.rs @@ -7,7 +7,7 @@ pub type Pool = r2d2::Pool>; pub fn pool() -> Pool { let manager = ConnectionManager::::new(database_url()); - Pool::new(manager).expect("db pool") + Pool::builder().max_size(15).build(manager).unwrap() } fn database_url() -> String {