fix:add deregister judgment.

pull/1075/head
Haotian Zhang 2 years ago
parent 483c391791
commit 72453ffc76

@ -22,3 +22,4 @@
- [fix:fix SCG report wrong service bug when using IP routing.](https://github.com/Tencent/spring-cloud-tencent/pull/1065)
- [fix:fix gray release examples bug.](https://github.com/Tencent/spring-cloud-tencent/pull/1068)
- [fix:fix router label feign interceptor order.](https://github.com/Tencent/spring-cloud-tencent/pull/1071)
- [fix:add deregister judgment.](https://github.com/Tencent/spring-cloud-tencent/pull/1076)

@ -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