You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2021/04/27 03:10:16 UTC

[dubbo] branch master updated: Remove duplicate calling metadataInfo#calAndGetRevision methods (#7630)

This is an automated email from the ASF dual-hosted git repository.

albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/master by this push:
     new 8279187  Remove duplicate calling metadataInfo#calAndGetRevision methods (#7630)
8279187 is described below

commit 8279187f85d0bb4dcec49712d2b2454c8c5471a3
Author: 灼华 <43...@users.noreply.github.com>
AuthorDate: Tue Apr 27 11:10:02 2021 +0800

    Remove duplicate calling metadataInfo#calAndGetRevision methods (#7630)
---
 .../dubbo/registry/client/metadata/store/RemoteMetadataServiceImpl.java  | 1 -
 1 file changed, 1 deletion(-)

diff --git a/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/metadata/store/RemoteMetadataServiceImpl.java b/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/metadata/store/RemoteMetadataServiceImpl.java
index 209a9fa..999761e 100644
--- a/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/metadata/store/RemoteMetadataServiceImpl.java
+++ b/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/metadata/store/RemoteMetadataServiceImpl.java
@@ -63,7 +63,6 @@ public class RemoteMetadataServiceImpl {
         metadataInfos.forEach((registryCluster, metadataInfo) -> {
             if (!metadataInfo.hasReported()) {
                 SubscriberMetadataIdentifier identifier = new SubscriberMetadataIdentifier(serviceName, metadataInfo.calAndGetRevision());
-                metadataInfo.calAndGetRevision();
                 metadataInfo.getExtendParams().put(REGISTRY_CLUSTER_KEY, registryCluster);
                 MetadataReport metadataReport = getMetadataReports().get(registryCluster);
                 if (metadataReport == null) {