diff --git a/common/constant/key.go b/common/constant/key.go index 80bb4195a8ccd158d7cc6e8678a3ce06253a2059..016c93a52f64222c9f390bef5428f143f9950111 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 6fe8b02f5c87d5842cf1f51fb1063e153f341f36..9f6030e8d7e143935dfce961971d9c8a49aa7587 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 3624804dbcd9121d7e0e945319c11e541185838e..faa8dc9f8162511db7f41592e5ef7cf064930f12 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