From 75551dc3a18fe81a99fcc66b7b2b0edb45dad0d9 Mon Sep 17 00:00:00 2001 From: asonix Date: Tue, 3 Oct 2023 16:15:49 -0500 Subject: [PATCH] Increase deadpool wait timeout, helps with extreme concurrency --- src/repo/postgres.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/repo/postgres.rs b/src/repo/postgres.rs index 4c8b83b..f221443 100644 --- a/src/repo/postgres.rs +++ b/src/repo/postgres.rs @@ -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(|_, _| {