Reduce number of Tokio workers (#129)

This commit is contained in:
Ulyssa 2023-07-05 15:25:42 -07:00
parent 8d4539831f
commit 61aba80be1
No known key found for this signature in database
GPG key ID: 1B3965A3D18B9B64
7 changed files with 232 additions and 258 deletions

View file

@ -712,6 +712,7 @@ fn main() -> IambResult<()> {
let rt = tokio::runtime::Builder::new_multi_thread()
.enable_all()
.worker_threads(2)
.thread_name_fn(|| {
static ATOMIC_ID: AtomicUsize = AtomicUsize::new(0);
let id = ATOMIC_ID.fetch_add(1, Ordering::SeqCst);