Skip to content

Commit 3559f0b

Browse files
committed
feat: update
1 parent 5065334 commit 3559f0b

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

frameworks/Rust/hyperlane/src/db.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ pub async fn connection_db() -> DbPoolConnection {
100100
DATABASE_NAME
101101
),
102102
};
103-
let pool_size: u32 = ((get_thread_count() as u32) << 1).min(DB_MAX_CONNECTIONS);
103+
let pool_size: u32 = (get_thread_count() as u32).min(DB_MAX_CONNECTIONS);
104104
let pool: DbPoolConnection = PgPoolOptions::new()
105105
.max_connections(DB_MAX_CONNECTIONS)
106106
.min_connections(pool_size)

0 commit comments

Comments
 (0)