Skip to content

Commit

Permalink
Polish apache#6198 : [Issue] Fixing NacosDynamicConfiguration#publish…
Browse files Browse the repository at this point in the history
…Config bug
  • Loading branch information
mercyblitz committed Jun 11, 2020
1 parent e2b9b56 commit ab03f26
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ public abstract class AbstractAbstractWritableMetadataService implements Writabl

@Override
public void publishServiceDefinition(URL url) {
if (SERVICE_INTERFACE_NAME.equals(url.getServiceInterface())) { // Ignore the interface "MetadataService"
return;
}
publishServiceDefinition(url.getServiceKey(), getServiceDefinition(url));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ public MetadataReport getMetadataReport() {

@Override
public void publishServiceDefinition(URL url) {

if (SERVICE_INTERFACE_NAME.equals(url.getServiceInterface())) { // Ignore the interface "MetadataService"
return;
}

String side = url.getParameter(SIDE_KEY);
if (PROVIDER_SIDE.equalsIgnoreCase(side)) {
//TODO, the params part is duplicate with that stored by exportURL(url), can be further optimized in the future.
Expand Down

0 comments on commit ab03f26

Please sign in to comment.