소스 검색

nacos分组修改

lichunlei 7 달 전
부모
커밋
8f217be48c
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      Util/RefreshService.cs
  2. 2 2
      appsettings.Development.json

+ 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_GROUP");
+                    var list = await _namingService.GetAllInstances(serviceName, "DEFAULT");
                     var healthy = list.Where(h => h.Healthy && h.Enabled).ToList();
 
                     if (healthy.Count > 0)

+ 2 - 2
appsettings.Development.json

@@ -11,13 +11,13 @@
       {
         "Optional": false,
         "DataId": "omega",
-        "Group": "DEFAULT_GROUP"
+        "Group": "DEFAULT"
       }
     ],
     "Namespace": "7e41669f-6054-45f5-b038-f7bb07410807",
     "ServerAddresses": [ "https://nacos-test.kexiaoshuang.com/" ],
     "ServiceName": "omega_router",
-    "GroupName": "DEFAULT_GROUP",
+    "GroupName": "DEFAULT",
     "UserName": "nacos",
     "Password": "Kxs#2025",
     "EndPoint": "",