db: set max pool size to 15
Signed-off-by: SphericalKat <amolele@gmail.com>
This commit is contained in:
parent
43df413e57
commit
1a5cb0d718
@ -7,7 +7,7 @@ pub type Pool = r2d2::Pool<ConnectionManager<PgConnection>>;
|
|||||||
|
|
||||||
pub fn pool() -> Pool {
|
pub fn pool() -> Pool {
|
||||||
let manager = ConnectionManager::<PgConnection>::new(database_url());
|
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 {
|
fn database_url() -> String {
|
||||||
|
Loading…
Reference in New Issue
Block a user