无论哪种状态都回调
This commit is contained in:
parent
4e5f7a56da
commit
19c9e4eb36
|
@ -58,7 +58,7 @@ func consume(event *model.Event) {
|
||||||
SetEventStatus(event, model.STATUS_UPGRADE)
|
SetEventStatus(event, model.STATUS_UPGRADE)
|
||||||
|
|
||||||
if needNotify {
|
if needNotify {
|
||||||
if event.EventType == config.ALERT && NeedCallback(event.Sid) {
|
if NeedCallback(event.Sid) {
|
||||||
if err := PushCallbackEvent(event); err != nil {
|
if err := PushCallbackEvent(event); err != nil {
|
||||||
logger.Errorf("push event to callback queue failed, callbackEvent: %+v", event)
|
logger.Errorf("push event to callback queue failed, callbackEvent: %+v", event)
|
||||||
}
|
}
|
||||||
|
@ -82,7 +82,7 @@ func consume(event *model.Event) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if event.EventType == config.ALERT && NeedCallback(event.Sid) {
|
if NeedCallback(event.Sid) {
|
||||||
if err := PushCallbackEvent(event); err != nil {
|
if err := PushCallbackEvent(event); err != nil {
|
||||||
logger.Errorf("push event to callback queue failed, callbackEvent: %+v", event)
|
logger.Errorf("push event to callback queue failed, callbackEvent: %+v", event)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue