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 3f0cc7e commit 4c9c41eCopy full SHA for 4c9c41e
frameworks/Rust/hyperlane/src/db.rs
@@ -115,7 +115,7 @@ pub async fn connection_db() -> DbPoolConnection {
115
DATABASE_NAME
116
),
117
};
118
- let pool_size: u32 = (get_thread_count() << 2).min(100) as u32;
+ let pool_size: u32 = (get_thread_count() >> 2).max(1).min(100) as u32;
119
let pool: DbPoolConnection = PgPoolOptions::new()
120
.min_connections(pool_size)
121
.max_lifetime(None)
0 commit comments