fix:add deregister judgment.

pull/1076/head
Haotian Zhang 2 years ago
parent 663f3395c9
commit 17cf53abc6

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

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

Loading…
Cancel
Save