Skip to content

Commit 0898461

Browse files
authored
Allow to deploy pools without checking (#438)
1 parent 52b1b43 commit 0898461

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pgcat"
3-
version = "1.0.2-alpha2"
3+
version = "1.0.2-alpha3"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

src/pool.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,13 @@ impl ConnectionPool {
401401
.idle_timeout(Some(std::time::Duration::from_millis(idle_timeout)))
402402
.max_lifetime(Some(std::time::Duration::from_millis(server_lifetime)))
403403
.reaper_rate(std::time::Duration::from_millis(reaper_rate))
404-
.test_on_check_out(false)
405-
.build(manager)
406-
.await?;
404+
.test_on_check_out(false);
405+
406+
let pool = if config.general.validate_config {
407+
pool.build(manager).await?
408+
} else {
409+
pool.build_unchecked(manager)
410+
};
407411

408412
pools.push(pool);
409413
servers.push(address);

0 commit comments

Comments
 (0)