From ac831378173ec09da79a720118901562cb231e87 Mon Sep 17 00:00:00 2001 From: Mostafa Abdelraouf Date: Mon, 29 Aug 2022 10:59:51 -0500 Subject: [PATCH] Change default lifetime max to 24-hours instead of 30 minutes --- src/pool.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pool.rs b/src/pool.rs index 99cccaf1..6485213b 100644 --- a/src/pool.rs +++ b/src/pool.rs @@ -182,6 +182,7 @@ impl ConnectionPool { let pool = Pool::builder() .max_size(user.pool_size) + .max_lifetime(Some(std::time::Duration::from_secs(60 * 60 * 24))) .connection_timeout(std::time::Duration::from_millis( config.general.connect_timeout, ))