From 95c2d593cc049290b4f989c87116ff567f1dba22 Mon Sep 17 00:00:00 2001 From: Lev Kokotov Date: Tue, 8 Feb 2022 16:56:29 -0800 Subject: [PATCH] health check timeout config --- src/pool.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pool.rs b/src/pool.rs index 693b472..ed267ed 100644 --- a/src/pool.rs +++ b/src/pool.rs @@ -180,7 +180,7 @@ impl ConnectionPool { let server = &mut *conn; match tokio::time::timeout( - tokio::time::Duration::from_millis(HEALTHCHECK_TIMEOUT), + tokio::time::Duration::from_millis(self.healthcheck_timeout), server.query("SELECT 1"), ) .await