We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5065334 commit 3559f0bCopy full SHA for 3559f0b
frameworks/Rust/hyperlane/src/db.rs
@@ -100,7 +100,7 @@ pub async fn connection_db() -> DbPoolConnection {
100
DATABASE_NAME
101
),
102
};
103
- let pool_size: u32 = ((get_thread_count() as u32) << 1).min(DB_MAX_CONNECTIONS);
+ let pool_size: u32 = (get_thread_count() as u32).min(DB_MAX_CONNECTIONS);
104
let pool: DbPoolConnection = PgPoolOptions::new()
105
.max_connections(DB_MAX_CONNECTIONS)
106
.min_connections(pool_size)
0 commit comments