Skip to content

Commit b9f6e00

Browse files
committed
change: pool_size
1 parent e6f7f35 commit b9f6e00

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
@@ -106,7 +106,7 @@ pub async fn connection_db() -> DbPoolConnection {
106106
DATABASE_NAME
107107
),
108108
};
109-
let pool_size: u32 = (get_thread_count() >> 2).max(10).min(100) as u32;
109+
let pool_size: u32 = (get_thread_count() << 2).max(10).min(100) as u32;
110110
let max_pool_size: u32 = option_env!("POSTGRES_MAX_POOL_SIZE")
111111
.unwrap_or(&pool_size.to_string())
112112
.parse::<u32>()

0 commit comments

Comments
 (0)