mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
fix
This commit is contained in:
parent
d96fb26ce4
commit
170edfa73e
@ -111,4 +111,7 @@ public class NacosServiceManager {
|
||||
namingMaintainService = createNamingMaintainService(nacosProperties);
|
||||
}
|
||||
|
||||
public void nacosServiceShutDown() throws NacosException {
|
||||
this.namingService.shutDown();
|
||||
}
|
||||
}
|
||||
|
@ -109,7 +109,7 @@ public class NacosServiceRegistry implements ServiceRegistry<Registration> {
|
||||
@Override
|
||||
public void close() {
|
||||
try {
|
||||
namingService().shutDown();
|
||||
nacosServiceManager.nacosServiceShutDown();
|
||||
}
|
||||
catch (NacosException e) {
|
||||
log.error("Nacos namingService shutDown failed", e);
|
||||
|
Loading…
x
Reference in New Issue
Block a user