Skip to content

Commit 48cff1f

Browse files
authored
Slightly more light weight health check (#100)
1 parent 8a06fc4 commit 48cff1f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.circleci/pgcat.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ port = 6432
1414
# How long to wait before aborting a server connection (ms).
1515
connect_timeout = 100
1616

17-
# How much time to give `SELECT 1` health check query to return with a result (ms).
17+
# How much time to give the health check query to return with a result (ms).
1818
healthcheck_timeout = 100
1919

2020
# For how long to ban a server if it fails a health check (seconds).

src/pool.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ impl ConnectionPool {
328328

329329
match tokio::time::timeout(
330330
tokio::time::Duration::from_millis(healthcheck_timeout),
331-
server.query("SELECT 1"),
331+
server.query(";"),
332332
)
333333
.await
334334
{

0 commit comments

Comments
 (0)