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:
parent
e419cac829
commit
62d3692dd1
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user