Skip to content

Commit

Permalink
clear events once we've processed them
Browse files Browse the repository at this point in the history
  • Loading branch information
jeefy committed Oct 19, 2024
1 parent 2620d16 commit f4de354
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/notify/notify.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ func SendNotification(HeartBeat *types.KippyHeartbeat, HeartBeatLock *sync.Mutex
}
}

// Clear the events after we've filtered them
HeartBeat.Events = []types.KippyEvent{}

HeartBeatLock.Unlock()

// Let's not send messages unless there are actually messages
Expand Down

0 comments on commit f4de354

Please sign in to comment.