fix:add deregister judgment.

pull/1074/head
Haotian Zhang 2 years ago
parent 67b13d3894
commit 2958c49070

@ -23,3 +23,4 @@
- [fix:fix gray release examples bug.](https://github.com/Tencent/spring-cloud-tencent/pull/1066)
- [fix:fix router label feign interceptor order.](https://github.com/Tencent/spring-cloud-tencent/pull/1069)
- [feat:added polaris weighted round robin load balancer.](https://github.com/Tencent/spring-cloud-tencent/pull/1062)
- [fix:add deregister judgment.](https://github.com/Tencent/spring-cloud-tencent/pull/1074)

@ -87,6 +87,22 @@ public class PolarisAutoServiceRegistration extends AbstractAutoServiceRegistrat
super.registerManagement();
}
@Override
protected void deregister() {
if (!this.registration.isRegisterEnabled()) {
return;
}
super.deregister();
}
@Override
protected void deregisterManagement() {
if (!this.registration.isRegisterEnabled()) {
return;
}
super.deregisterManagement();
}
@Override
protected Object getConfiguration() {
return this.polarisDiscoveryProperties;

Loading…
Cancel
Save