mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-27 18:56:30 +00:00
health check timeout config
This commit is contained in:
@@ -180,7 +180,7 @@ impl ConnectionPool {
|
|||||||
let server = &mut *conn;
|
let server = &mut *conn;
|
||||||
|
|
||||||
match tokio::time::timeout(
|
match tokio::time::timeout(
|
||||||
tokio::time::Duration::from_millis(HEALTHCHECK_TIMEOUT),
|
tokio::time::Duration::from_millis(self.healthcheck_timeout),
|
||||||
server.query("SELECT 1"),
|
server.query("SELECT 1"),
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
|
|||||||
Reference in New Issue
Block a user