Explorar o código

修改nacos分组

lichunlei hai 1 mes
pai
achega
2617ab1078
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)