mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-23 01:16:30 +00:00
Allow to deploy pools without checking (#438)
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -897,7 +897,7 @@ checksum = "478c572c3d73181ff3c2539045f6eb99e5491218eae919370993b890cdbdd98e"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pgcat"
|
name = "pgcat"
|
||||||
version = "1.0.2-alpha2"
|
version = "1.0.2-alpha3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"arc-swap",
|
"arc-swap",
|
||||||
"async-trait",
|
"async-trait",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "pgcat"
|
name = "pgcat"
|
||||||
version = "1.0.2-alpha2"
|
version = "1.0.2-alpha3"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|||||||
10
src/pool.rs
10
src/pool.rs
@@ -401,9 +401,13 @@ impl ConnectionPool {
|
|||||||
.idle_timeout(Some(std::time::Duration::from_millis(idle_timeout)))
|
.idle_timeout(Some(std::time::Duration::from_millis(idle_timeout)))
|
||||||
.max_lifetime(Some(std::time::Duration::from_millis(server_lifetime)))
|
.max_lifetime(Some(std::time::Duration::from_millis(server_lifetime)))
|
||||||
.reaper_rate(std::time::Duration::from_millis(reaper_rate))
|
.reaper_rate(std::time::Duration::from_millis(reaper_rate))
|
||||||
.test_on_check_out(false)
|
.test_on_check_out(false);
|
||||||
.build(manager)
|
|
||||||
.await?;
|
let pool = if config.general.validate_config {
|
||||||
|
pool.build(manager).await?
|
||||||
|
} else {
|
||||||
|
pool.build_unchecked(manager)
|
||||||
|
};
|
||||||
|
|
||||||
pools.push(pool);
|
pools.push(pool);
|
||||||
servers.push(address);
|
servers.push(address);
|
||||||
|
|||||||
Reference in New Issue
Block a user