Selaa lähdekoodia

修改nacos分组

lichunlei 1 kuukausi sitten
vanhempi
commit
5819e1cc81
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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)