Skip to content

Commit 021a2ff

Browse files
wip
1 parent 9d35205 commit 021a2ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modules/db/sqlx/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ impl SqlxConnection {
707707
.idle_timeout(Duration::from_secs(60))
708708
.max_lifetime(Duration::from_secs(3600))
709709
.max_connections(64)
710-
.min_connections(0)
710+
.min_connections(2)
711711
.connect_lazy(con_str.as_str())
712712
.map_err(|e| JsError::new_string(format!("{e}")))?;
713713
Ok(SqlxConnection::MySqlConnection {
@@ -728,7 +728,7 @@ impl SqlxConnection {
728728
.idle_timeout(Duration::from_secs(60))
729729
.max_lifetime(Duration::from_secs(3600))
730730
.max_connections(64)
731-
.min_connections(0)
731+
.min_connections(2)
732732
.connect_lazy(con_str.as_str())
733733
.map_err(|e| JsError::new_string(format!("{e}")))?;
734734
Ok(SqlxConnection::PostgresConnection {

0 commit comments

Comments
 (0)