Allow to deploy pools without checking (#438)

This commit is contained in:
Lev Kokotov
2023-05-12 12:48:37 -07:00
committed by GitHub
parent 52b1b43850
commit 0898461c01
3 changed files with 9 additions and 5 deletions

View File

@@ -401,9 +401,13 @@ impl ConnectionPool {
.idle_timeout(Some(std::time::Duration::from_millis(idle_timeout)))
.max_lifetime(Some(std::time::Duration::from_millis(server_lifetime)))
.reaper_rate(std::time::Duration::from_millis(reaper_rate))
.test_on_check_out(false)
.build(manager)
.await?;
.test_on_check_out(false);
let pool = if config.general.validate_config {
pool.build(manager).await?
} else {
pool.build_unchecked(manager)
};
pools.push(pool);
servers.push(address);