瀏覽代碼

修改nacos分组

lichunlei 1 月之前
父節點
當前提交
2617ab1078
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Util/RefreshService.cs

+ 1 - 1
Util/RefreshService.cs

@@ -22,7 +22,7 @@ public class RefreshService : BackgroundService
                 foreach(var service in options.Services)
                 {
                     string serviceName = service.Name;
-                    var list = await _namingService.GetAllInstances(serviceName, "DEFAULT");
+                    var list = await _namingService.GetAllInstances(serviceName, "DEFAULT_GROUP");
                     var healthy = list.Where(h => h.Healthy && h.Enabled).ToList();
 
                     if (healthy.Count > 0)