You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by vi...@apache.org on 2019/01/07 06:41:27 UTC
[incubator-dubbo] branch 2.7.0-release updated: avoid duplicated
refresh for application (#3157)
This is an automated email from the ASF dual-hosted git repository.
victory pushed a commit to branch 2.7.0-release
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo.git
The following commit(s) were added to refs/heads/2.7.0-release by this push:
new 0fba21c avoid duplicated refresh for application (#3157)
0fba21c is described below
commit 0fba21ca47623fd73182b3f1600f4e2e491d0c17
Author: Ian Luo <ia...@gmail.com>
AuthorDate: Mon Jan 7 14:41:22 2019 +0800
avoid duplicated refresh for application (#3157)
remove checkApplication for it is invoked before.
---
.../main/java/org/apache/dubbo/config/AbstractInterfaceConfig.java | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/AbstractInterfaceConfig.java b/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/AbstractInterfaceConfig.java
index 3c1d1da..2976c13 100644
--- a/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/AbstractInterfaceConfig.java
+++ b/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/AbstractInterfaceConfig.java
@@ -371,8 +371,7 @@ public abstract class AbstractInterfaceConfig extends AbstractMethodConfig {
}
}
- private URL loadMetadataReporterURL(boolean provider) {
- this.checkApplication();
+ private URL loadMetadataReporterURL() {
String address = metadataReportConfig.getAddress();
if (address == null || address.length() == 0) {
return null;
@@ -388,9 +387,7 @@ public abstract class AbstractInterfaceConfig extends AbstractMethodConfig {
if (metadataReportConfig == null || !metadataReportConfig.isValid()) {
return null;
}
- return MetadataReportService.instance(() -> {
- return loadMetadataReporterURL(true);
- });
+ return MetadataReportService.instance(this::loadMetadataReporterURL);
}
/**