PgSql: Use clean recycling method on connection pool
This commit is contained in:
@@ -42,7 +42,7 @@ impl PostgresStore {
|
|||||||
.unwrap_or_default();
|
.unwrap_or_default();
|
||||||
cfg.options = config.value((&prefix, "options")).map(|s| s.to_string());
|
cfg.options = config.value((&prefix, "options")).map(|s| s.to_string());
|
||||||
cfg.manager = Some(ManagerConfig {
|
cfg.manager = Some(ManagerConfig {
|
||||||
recycling_method: RecyclingMethod::Fast,
|
recycling_method: RecyclingMethod::Clean,
|
||||||
});
|
});
|
||||||
if let Some(max_conn) = config.property::<usize>((&prefix, "pool.max-connections")) {
|
if let Some(max_conn) = config.property::<usize>((&prefix, "pool.max-connections")) {
|
||||||
cfg.pool = PoolConfig::new(max_conn).into();
|
cfg.pool = PoolConfig::new(max_conn).into();
|
||||||
|
|||||||
Reference in New Issue
Block a user