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