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 2019/11/15 05:37:19 UTC
[dubbo] branch master updated: use default revision N/A
This is an automated email from the ASF dual-hosted git repository.
liujun 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 73f182a use default revision N/A
73f182a is described below
commit 73f182a8cd3b0b9fcf084e11ccb8e005b740bb58
Author: ken.lj <ke...@gmail.com>
AuthorDate: Fri Nov 15 13:37:03 2019 +0800
use default revision N/A
---
.../registry/client/metadata/proxy/RemoteMetadataServiceProxy.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/metadata/proxy/RemoteMetadataServiceProxy.java b/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/metadata/proxy/RemoteMetadataServiceProxy.java
index 3b0cd2e..55eb17a 100644
--- a/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/metadata/proxy/RemoteMetadataServiceProxy.java
+++ b/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/metadata/proxy/RemoteMetadataServiceProxy.java
@@ -17,6 +17,7 @@ import java.util.SortedSet;
import java.util.TreeSet;
import static org.apache.dubbo.common.constants.CommonConstants.PROVIDER_SIDE;
+import static org.apache.dubbo.registry.client.metadata.URLRevisionResolver.NO_REVISION;
/**
* 2019-08-09
@@ -32,7 +33,7 @@ public class RemoteMetadataServiceProxy implements MetadataService {
this.serviceName = serviceInstance.getServiceName();
// this is ServiceInstance of registry(Provider)
this.revision = serviceInstance.getMetadata()
- .getOrDefault(ServiceInstanceMetadataUtils.EXPORTED_SERVICES_REVISION_PROPERTY_NAME, "");
+ .getOrDefault(ServiceInstanceMetadataUtils.EXPORTED_SERVICES_REVISION_PROPERTY_NAME, NO_REVISION);
}
@Override