去你妈的线程池,新增use_thread_pool参数

This commit is contained in:
Zihaoxu2008
2025-01-25 20:28:46 +08:00
parent b170844fc4
commit 043ea80cbd
4 changed files with 44 additions and 21 deletions

View File

@@ -14,7 +14,8 @@ pub struct Configuration {
spam_file: String,
spam_delay_ms: i32,
random_prefix: bool,
pub worker_threads: i32
pub worker_threads: i32,
pub use_thread_pool: bool
}
impl Configuration {
@@ -57,7 +58,8 @@ impl Configuration {
spam_file: "".to_string(),
spam_delay_ms: 0,
random_prefix: false,
worker_threads: 100
worker_threads: 100,
use_thread_pool: true
}
}