Skip to content

Commit

Permalink
avoid duplicated refresh for application (#3157)
Browse files Browse the repository at this point in the history
remove checkApplication for it is invoked before.
  • Loading branch information
beiwei30 authored and cvictory committed Jan 7, 2019
1 parent ff5d2ff commit 0fba21c
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,7 @@ static void appendRuntimeParameters(Map<String, String> map) {
}
}

private URL loadMetadataReporterURL(boolean provider) {
this.checkApplication();
private URL loadMetadataReporterURL() {
String address = metadataReportConfig.getAddress();
if (address == null || address.length() == 0) {
return null;
Expand All @@ -388,9 +387,7 @@ protected MetadataReportService getMetadataReportService() {
if (metadataReportConfig == null || !metadataReportConfig.isValid()) {
return null;
}
return MetadataReportService.instance(() -> {
return loadMetadataReporterURL(true);
});
return MetadataReportService.instance(this::loadMetadataReporterURL);
}

/**
Expand Down

0 comments on commit 0fba21c

Please sign in to comment.