acually postoverflow _before_ reprocessing (#1739)

Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
This commit is contained in:
Manuel Sabban 2022-09-07 14:16:47 +02:00 committed by GitHub
parent b2130b1593
commit f3317f78d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -144,10 +144,6 @@ LOOP:
buckets.Bucket_map.Delete(event.Overflow.Mapkey)
break
}
if event.Overflow.Reprocess {
log.Debugf("Overflow being reprocessed.")
input <- event
}
/* process post overflow parser nodes */
event, err := parser.Parse(postOverflowCTX, event, postOverflowNodes)
if err != nil {
@ -158,6 +154,10 @@ LOOP:
log.Printf("[%s] is whitelisted, skip.", *event.Overflow.Alert.Message)
continue
}
if event.Overflow.Reprocess {
log.Debugf("Overflow being reprocessed.")
input <- event
}
if dumpStates {
continue
}