diff --git a/service/singleton/servicesentinel.go b/service/singleton/servicesentinel.go index 2353f99..6eba17d 100644 --- a/service/singleton/servicesentinel.go +++ b/service/singleton/servicesentinel.go @@ -416,7 +416,7 @@ func (ss *ServiceSentinel) worker() { ss.lastStatus[mh.GetId()] = stateCode // 判断是否需要发送通知 - isNeedSendNotification := ss.monitors[mh.GetId()].Notify && lastStatus != 0 + isNeedSendNotification := ss.monitors[mh.GetId()].Notify && (lastStatus != 0 || stateCode == StatusDown) if isNeedSendNotification { ServerLock.RLock()