mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-06 13:40:06 +00:00
不忽略首次请求就出错的情况
This commit is contained in:
@@ -416,7 +416,7 @@ func (ss *ServiceSentinel) worker() {
|
|||||||
ss.lastStatus[mh.GetId()] = stateCode
|
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 {
|
if isNeedSendNotification {
|
||||||
ServerLock.RLock()
|
ServerLock.RLock()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user