Skip to content

Commit

Permalink
fix:add deregister judgment.
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyeBeFreeman committed Aug 1, 2023
1 parent 5430403 commit 7f54dff
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@
- feat:added automatic optimization for dynamic config refresh type.
- fix:fix gray release examples bug.
- fix:fix router label feign interceptor order.
- fix:fix web server wrong open bug.
- fix:add deregister judgment.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,22 @@ protected void 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;
Expand Down

0 comments on commit 7f54dff

Please sign in to comment.