Skip to content

Commit 9de8683

Browse files
committed
main: Increase the maximum number of blocking threads
1 parent 883ebf5 commit 9de8683

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

node/src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ enum ConnectionType {
6060
WS,
6161
}
6262

63-
#[tokio::main]
63+
// Saturating the blocking threads can cause all sorts of issues, so set a large maximum.
64+
// Ideally we'd use semaphores to not use more blocking threads than DB connections,
65+
// but for now this is necessary.
66+
#[tokio::main(max_threads = 2000)]
6467
async fn main() {
6568
env_logger::init();
6669

0 commit comments

Comments
 (0)