fixed cargo fmt
This commit is contained in:
@@ -57,8 +57,8 @@ pub fn insert_pivot_keyword(event_record: &Value) {
|
|||||||
} else {
|
} else {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let mut pivots = PIVOT_KEYWORD.write().unwrap().iter_mut();
|
let mut pivots = PIVOT_KEYWORD.write().unwrap();
|
||||||
for (_, pivot) in pivots {
|
for (_, pivot) in pivots.iter_mut() {
|
||||||
for field in &pivot.fields {
|
for field in &pivot.fields {
|
||||||
if let Some(array_str) = configs::EVENTKEY_ALIAS.get_event_key(&String::from(field)) {
|
if let Some(array_str) = configs::EVENTKEY_ALIAS.get_event_key(&String::from(field)) {
|
||||||
let split: Vec<&str> = array_str.split('.').collect();
|
let split: Vec<&str> = array_str.split('.').collect();
|
||||||
|
|||||||
@@ -252,8 +252,8 @@ impl AlertMessage {
|
|||||||
.as_bytes(),
|
.as_bytes(),
|
||||||
)
|
)
|
||||||
.ok();
|
.ok();
|
||||||
let error_logs = ERROR_LOG_STACK.lock().unwrap().iter();
|
let error_logs = ERROR_LOG_STACK.lock().unwrap();
|
||||||
for error_log in error_logs {
|
for error_log in error_logs.iter() {
|
||||||
writeln!(error_log_writer, "{}", error_log).ok();
|
writeln!(error_log_writer, "{}", error_log).ok();
|
||||||
}
|
}
|
||||||
println!(
|
println!(
|
||||||
|
|||||||
Reference in New Issue
Block a user