fix: 修复修改通知方式所在组后 不会移除其原有map映射关系的问题

This commit is contained in:
Akkia
2022-04-15 23:23:51 +08:00
parent 2ccb8f3477
commit 26646bff1a
4 changed files with 22 additions and 22 deletions

View File

@@ -149,7 +149,7 @@ func (ss *ServiceSentinel) loadMonitorHistory() {
var err error
ss.monitorsLock.Lock()
defer ss.monitorsLock.Unlock()
for i := range monitors {
for i := 0; i < len(monitors); i++ {
// 旧版本可能不存在通知组 为其设置默认组
if monitors[i].NotificationTag == "" {
monitors[i].NotificationTag = "default"