mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-23 09:26:30 +00:00
health check timeout config
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user