提交 9e8d9b44 编写于 作者: U Ulric Qin

fix NotifyRecovered logic

上级 db15eaab
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册