Skip to content
Snippets Groups Projects
Commit 6bcfde47 authored by vito.he's avatar vito.he Committed by GitHub
Browse files

Merge pull request #452 from hxmhlt/code_enhance_of_urlinit

Mod:release key
parents dc5e052f c44de860
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,7 @@ const (
LOCAL_ADDR = "local-addr"
REMOTE_ADDR = "remote-addr"
DUBBO_KEY = "dubbo"
RELEASE_KEY = "release"
ANYHOST_KEY = "anyhost"
)
......
......@@ -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 {
......
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment