Parcourir la source

修改nacos分组

lichunlei il y a 1 mois
Parent
commit
2617ab1078
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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)