Skip to content

Commit 6e64671

Browse files
author
liguoliang
committed
完善示例
1 parent a034de5 commit 6e64671

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

demo/ApiGatewayDemo/appsettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"nacos": {
1111
"ServerAddresses": [ "http://localhost:8848" ],
1212
"DefaultTimeOut": 15000,
13-
"Namespace": "",
13+
"Namespace": "01761089-727d-49cb-9abe-fbe647f83927",
1414
"ListenInterval": 1000,
1515
"ServiceName": "apigateway"
1616
}

demo/ProductApi/appsettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"nacos": {
1111
"ServerAddresses": [ "http://localhost:8848" ],
1212
"DefaultTimeOut": 15000,
13-
"Namespace": "",
13+
"Namespace": "01761089-727d-49cb-9abe-fbe647f83927",
1414
"ListenInterval": 1000,
1515
"ServiceName": "productservice"
1616
}

src/Ocelot.Provider.Nacos/Nacos.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public async Task<List<Service>> Get()
3434

3535
var instances = await _client.ListInstancesAsync(new ListInstancesRequest
3636
{
37+
Clusters = _clusters,
3738
ServiceName = _serviceName,
3839
GroupName = _groupName,
3940
NamespaceId = _namespaceId,

0 commit comments

Comments
 (0)