Skip to content

Commit 74acef2

Browse files
committed
feat: update
1 parent 6ce25ff commit 74acef2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

frameworks/Rust/hyperlane/src/server.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ use tokio::runtime::{Builder, Runtime};
33

44
fn runtime() -> Runtime {
55
Builder::new_multi_thread()
6-
.worker_threads(num_cpus::get() << 2)
6+
.worker_threads(get_thread_count() << 1)
77
.thread_stack_size(1_048_576)
88
.max_blocking_threads(5120)
99
.max_io_events_per_tick(65_536)
1010
.enable_all()
11-
.global_queue_interval(61)
11+
.global_queue_interval(64)
12+
.event_interval(1)
1213
.build()
1314
.unwrap()
1415
}

0 commit comments

Comments
 (0)