去你妈的线程池,新增use_thread_pool参数
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user