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

This commit is contained in:
Akkia committed 2022-04-15 23:23:51 +08:00
1 parent a048663c67
commit f64c7b6301
4 files changed
+22 -22

No files matched your search

+1 -1
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"