fix NotifyRecovered logic
This commit is contained in:
parent
db15eaab04
commit
9e8d9b44b1
|
@ -44,11 +44,14 @@ func consume(events []interface{}, sema *semaphore.Semaphore) {
|
|||
func consumeOne(event *models.AlertCurEvent) {
|
||||
logEvent(event, "consume")
|
||||
persist(event)
|
||||
if event.NotifyRecovered == 1 {
|
||||
fillUsers(event)
|
||||
callback(event)
|
||||
notify(event)
|
||||
|
||||
if event.IsRecovered && event.NotifyRecovered == 0 {
|
||||
return
|
||||
}
|
||||
|
||||
fillUsers(event)
|
||||
callback(event)
|
||||
notify(event)
|
||||
}
|
||||
|
||||
func persist(event *models.AlertCurEvent) {
|
||||
|
|
Loading…
Reference in New Issue