fixed clippy error
This commit is contained in:
@@ -186,7 +186,7 @@ pub fn get_event_value<'a>(key: &str, event_value: &'a Value) -> Option<&'a Valu
|
||||
|
||||
pub fn get_thread_num() -> usize {
|
||||
let conf = configs::CONFIG.read().unwrap();
|
||||
conf.args.thread_number.unwrap_or(num_cpus::get())
|
||||
conf.args.thread_number.unwrap_or_else(num_cpus::get())
|
||||
}
|
||||
|
||||
pub fn create_tokio_runtime() -> Runtime {
|
||||
|
||||
Reference in New Issue
Block a user