mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
update nacos version to 0.2.1-RC and format code
This commit is contained in:
@@ -37,7 +37,7 @@ public class NacosServer extends Server {
|
||||
this.metaInfo = new MetaInfo() {
|
||||
@Override
|
||||
public String getAppName() {
|
||||
return instance.getService().getName();
|
||||
return instance.serviceName();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -56,7 +56,7 @@ public class NacosServerList extends AbstractServerList<NacosServer> {
|
||||
private List<NacosServer> getServers() {
|
||||
try {
|
||||
List<Instance> instances = registration.getNacosNamingService()
|
||||
.selectInstances(serviceId, true);
|
||||
.getAllInstances(serviceId);
|
||||
return instancesToServerList(instances);
|
||||
}
|
||||
catch (Exception e) {
|
||||
|
Reference in New Issue
Block a user