1
0
mirror of https://gitee.com/mirrors/Spring-Cloud-Alibaba.git synced 2021-06-26 13:25:11 +08:00

add group information in getServices

This commit is contained in:
flystar32 2019-08-22 13:55:05 +08:00
parent e419cac829
commit 62d3692dd1

View File

@ -105,8 +105,9 @@ public class NacosDiscoveryClient implements DiscoveryClient {
public List<String> getServices() {
try {
String group = discoveryProperties.getGroup();
ListView<String> services = discoveryProperties.namingServiceInstance()
.getServicesOfServer(1, Integer.MAX_VALUE);
.getServicesOfServer(1, Integer.MAX_VALUE, group);
return services.getData();
} catch (Exception e) {
log.error("get service name from nacos server fail,", e);