You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by xi...@apache.org on 2020/03/22 15:30:05 UTC
[dubbo-go] branch develop updated: Mod:release key
This is an automated email from the ASF dual-hosted git repository.
xinminghe pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git
The following commit(s) were added to refs/heads/develop by this push:
new 09db044 Mod:release key
new c43d705 Merge pull request #452 from hxmhlt/code_enhance_of_urlinit
09db044 is described below
commit 09db044f62dde4ffe427f7d78f1e133acfc2a090
Author: vito.he <hx...@163.com>
AuthorDate: Sun Mar 22 23:26:25 2020 +0800
Mod:release key
---
common/constant/key.go | 1 +
config/reference_config.go | 2 +-
config/service_config.go | 2 +-
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/common/constant/key.go b/common/constant/key.go
index 80bb419..016c93a 100644
--- a/common/constant/key.go
+++ b/common/constant/key.go
@@ -41,6 +41,7 @@ const (
LOCAL_ADDR = "local-addr"
REMOTE_ADDR = "remote-addr"
DUBBO_KEY = "dubbo"
+ RELEASE_KEY = "release"
ANYHOST_KEY = "anyhost"
)
diff --git a/config/reference_config.go b/config/reference_config.go
index 6fe8b02..9f6030e 100644
--- a/config/reference_config.go
+++ b/config/reference_config.go
@@ -186,7 +186,7 @@ func (c *ReferenceConfig) getUrlMap() url.Values {
urlMap.Set(constant.GENERIC_KEY, strconv.FormatBool(c.Generic))
urlMap.Set(constant.ROLE_KEY, strconv.Itoa(common.CONSUMER))
urlMap.Set(constant.CATEGORY_KEY, (common.RoleType(common.CONSUMER)).String())
- urlMap.Set(constant.DUBBO_KEY, "dubbo-consumer-golang-"+constant.Version)
+ urlMap.Set(constant.RELEASE_KEY, "dubbo-golang-"+constant.Version)
urlMap.Set(constant.SIDE_KEY, (common.RoleType(common.CONSUMER)).Role())
if len(c.RequestTimeout) != 0 {
diff --git a/config/service_config.go b/config/service_config.go
index 3624804..faa8dc9 100644
--- a/config/service_config.go
+++ b/config/service_config.go
@@ -194,7 +194,7 @@ func (c *ServiceConfig) getUrlMap() url.Values {
urlMap.Set(constant.VERSION_KEY, c.Version)
urlMap.Set(constant.ROLE_KEY, strconv.Itoa(common.PROVIDER))
urlMap.Set(constant.CATEGORY_KEY, (common.RoleType(common.PROVIDER)).String())
- urlMap.Set(constant.DUBBO_KEY, "dubbo-provider-golang-"+constant.Version)
+ urlMap.Set(constant.RELEASE_KEY, "dubbo-golang-"+constant.Version)
urlMap.Set(constant.SIDE_KEY, (common.RoleType(common.PROVIDER)).Role())
// application info