Skip to content

Commit

Permalink
correct dropped events
Browse files Browse the repository at this point in the history
Signed-off-by: Raziel Cohen <rcohen@armosec.io>
  • Loading branch information
Raziel Cohen committed May 8, 2023
1 parent e387b58 commit eafc19f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/conthandler/container_aggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ func (aggregator *Aggregator) collectDataFromContainerAccumulator(errChan chan e
for {
newEvent := <-aggregator.aggregationDataChan
if newEvent.GetEventCMD() == accumulator.DropEventOccurred {
_ = aggregator.StopAggregate()
errChan <- fmt.Errorf(newEvent.GetEventCMD())
break
continue
}
aggregator.aggregationData = append(aggregator.aggregationData, newEvent)
}
Expand Down

0 comments on commit eafc19f

Please sign in to comment.