Skip to content

Commit a870482

Browse files
committed
feat: db pool
1 parent 908c350 commit a870482

File tree

1 file changed

+1
-2
lines changed
  • frameworks/Rust/hyperlane/src

1 file changed

+1
-2
lines changed

frameworks/Rust/hyperlane/src/db.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,7 @@ pub async fn connection_db() -> DbPoolConnection {
117117
),
118118
};
119119
let pool: DbPoolConnection = PgPoolOptions::new()
120-
.min_connections(1_000)
121-
.min_connections(1_000_000)
120+
.min_connections(get_thread_count() as u32)
122121
.max_lifetime(None)
123122
.idle_timeout(None)
124123
.connect(db_url)

0 commit comments

Comments
 (0)