Skip to content

Commit

Permalink
fixed wrong if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
hitenkoku committed Nov 22, 2022
1 parent 5e52768 commit ccd855b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/detections/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ pub fn create_output_filter_config(path: &str) -> HashMap<String, String> {

/// メッセージの設定を行う関数。aggcondition対応のためrecordではなく出力をする対象時間がDatetime形式での入力としている
pub fn insert_message(detect_info: DetectInfo, event_time: DateTime<Utc>) {
if MESSAGEKEYS.lock().unwrap().contains(&event_time) {
if !MESSAGEKEYS.lock().unwrap().contains(&event_time) {
MESSAGEKEYS.lock().unwrap().insert(event_time);
}
let mut v = MESSAGES.entry(event_time).or_default();
Expand Down

0 comments on commit ccd855b

Please sign in to comment.