fixed clippy error

This commit is contained in:
DustInDark
2022-06-16 18:23:16 +09:00
parent 7f381c666e
commit 3bcdc6208f
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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 {