Przeglądaj źródła

修改nacos分组

lichunlei 1 miesiąc temu
rodzic
commit
5819e1cc81
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Util/RefreshYarp.cs

+ 1 - 1
Util/RefreshYarp.cs

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