From dcbc89c310bc8243873fe1850d6e8d697ee71ada Mon Sep 17 00:00:00 2001 From: Akkia Date: Mon, 19 Jun 2023 05:13:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E5=BF=BD=E7=95=A5=E9=A6=96=E6=AC=A1?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E5=B0=B1=E5=87=BA=E9=94=99=E7=9A=84=E6=83=85?= =?UTF-8?q?=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/singleton/servicesentinel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()