Skip to content

Commit 620ab2a

Browse files
committed
PgSql: Use clean recycling method on connection pool
1 parent 3840a4e commit 620ab2a

File tree

1 file changed

+1
-1
lines changed
  • crates/store/src/backend/postgres

1 file changed

+1
-1
lines changed

crates/store/src/backend/postgres/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl PostgresStore {
4242
.unwrap_or_default();
4343
cfg.options = config.value((&prefix, "options")).map(|s| s.to_string());
4444
cfg.manager = Some(ManagerConfig {
45-
recycling_method: RecyclingMethod::Fast,
45+
recycling_method: RecyclingMethod::Clean,
4646
});
4747
if let Some(max_conn) = config.property::<usize>((&prefix, "pool.max-connections")) {
4848
cfg.pool = PoolConfig::new(max_conn).into();

0 commit comments

Comments
 (0)