2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-11-20 11:21:14 +00:00

Increase deadpool wait timeout, helps with extreme concurrency

This commit is contained in:
asonix 2023-10-03 16:15:49 -05:00
parent 247902e600
commit 75551dc3a1

View file

@ -177,7 +177,7 @@ impl PostgresRepo {
let pool = Pool::builder(mgr)
.runtime(deadpool::Runtime::Tokio1)
.wait_timeout(Some(Duration::from_secs(1)))
.wait_timeout(Some(Duration::from_secs(10)))
.create_timeout(Some(Duration::from_secs(2)))
.recycle_timeout(Some(Duration::from_secs(2)))
.post_create(Hook::sync_fn(|_, _| {