You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by li...@apache.org on 2021/12/13 07:38:23 UTC
[dubbo] branch 3.0-metadata-refactor updated: fix, use getRevision
This is an automated email from the ASF dual-hosted git repository.
liujun pushed a commit to branch 3.0-metadata-refactor
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/3.0-metadata-refactor by this push:
new 91dd062 fix, use getRevision
91dd062 is described below
commit 91dd06216ad22173101b2e135db71ae65f5dc1d5
Author: ken.lj <ke...@gmail.com>
AuthorDate: Mon Dec 13 15:37:55 2021 +0800
fix, use getRevision
---
.../org/apache/dubbo/registry/client/AbstractServiceDiscovery.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/AbstractServiceDiscovery.java b/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/AbstractServiceDiscovery.java
index 51532f9..f70fcac 100644
--- a/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/AbstractServiceDiscovery.java
+++ b/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/AbstractServiceDiscovery.java
@@ -266,14 +266,14 @@ public abstract class AbstractServiceDiscovery implements ServiceDiscovery {
protected void reportMetadata(MetadataInfo metadataInfo) {
if (metadataReport != null) {
- SubscriberMetadataIdentifier identifier = new SubscriberMetadataIdentifier(serviceName, metadataInfo.calAndGetRevision());
+ SubscriberMetadataIdentifier identifier = new SubscriberMetadataIdentifier(serviceName, metadataInfo.getRevision());
metadataReport.publishAppMetadata(identifier, metadataInfo);
}
}
protected void unReportMetadata(MetadataInfo metadataInfo) {
if (metadataReport != null) {
- SubscriberMetadataIdentifier identifier = new SubscriberMetadataIdentifier(serviceName, metadataInfo.calAndGetRevision());
+ SubscriberMetadataIdentifier identifier = new SubscriberMetadataIdentifier(serviceName, metadataInfo.getRevision());
metadataReport.unPublishAppMetadata(identifier, metadataInfo);
}
}