From d31bbda087617671aed695d1783f9c0963239e57 Mon Sep 17 00:00:00 2001 From: Greg Heartsfield Date: Thu, 22 Dec 2022 13:01:12 -0600 Subject: [PATCH] improvement: reduce lifetime of database connections --- src/db.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db.rs b/src/db.rs index cb41ac9..a64dd2b 100644 --- a/src/db.rs +++ b/src/db.rs @@ -84,7 +84,7 @@ pub fn build_pool( .test_on_check_out(true) // no noticeable performance hit .min_idle(Some(min_size)) .max_size(max_size) - .max_lifetime(Some(Duration::from_secs(60))) + .max_lifetime(Some(Duration::from_secs(30))) .build(manager) .unwrap(); info!(