mirror of
https://git.asonix.dog/asonix/pict-rs.git
synced 2024-11-25 02:51:17 +00:00
Increase deadpool wait timeout, helps with extreme concurrency
This commit is contained in:
parent
247902e600
commit
75551dc3a1
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ impl PostgresRepo {
|
||||||
|
|
||||||
let pool = Pool::builder(mgr)
|
let pool = Pool::builder(mgr)
|
||||||
.runtime(deadpool::Runtime::Tokio1)
|
.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)))
|
.create_timeout(Some(Duration::from_secs(2)))
|
||||||
.recycle_timeout(Some(Duration::from_secs(2)))
|
.recycle_timeout(Some(Duration::from_secs(2)))
|
||||||
.post_create(Hook::sync_fn(|_, _| {
|
.post_create(Hook::sync_fn(|_, _| {
|
||||||
|
|
Loading…
Reference in a new issue