Skip to content
Snippets Groups Projects
Commit 67fee58e authored by pantianying's avatar pantianying
Browse files

merge code

parent 02716fdd
No related branches found
No related tags found
No related merge requests found
...@@ -60,7 +60,7 @@ type ReferenceConfig struct { ...@@ -60,7 +60,7 @@ type ReferenceConfig struct {
invoker protocol.Invoker invoker protocol.Invoker
urls []*common.URL urls []*common.URL
Generic bool `yaml:"generic" json:"generic,omitempty" property:"generic"` Generic bool `yaml:"generic" json:"generic,omitempty" property:"generic"`
Sticky bool `yaml:"sticky" json:"sticky,omitempty" property:"sticky"` Sticky bool `yaml:"sticky" json:"sticky,omitempty" property:"sticky"`
RequestTimeout string `yaml:"timeout" json:"timeout,omitempty" property:"timeout"` RequestTimeout string `yaml:"timeout" json:"timeout,omitempty" property:"timeout"`
} }
...@@ -170,6 +170,9 @@ func (refconfig *ReferenceConfig) getUrlMap() url.Values { ...@@ -170,6 +170,9 @@ func (refconfig *ReferenceConfig) getUrlMap() url.Values {
urlMap.Set(constant.VERSION_KEY, refconfig.Version) urlMap.Set(constant.VERSION_KEY, refconfig.Version)
urlMap.Set(constant.GENERIC_KEY, strconv.FormatBool(refconfig.Generic)) urlMap.Set(constant.GENERIC_KEY, strconv.FormatBool(refconfig.Generic))
urlMap.Set(constant.ROLE_KEY, strconv.Itoa(common.CONSUMER)) urlMap.Set(constant.ROLE_KEY, strconv.Itoa(common.CONSUMER))
if len(refconfig.RequestTimeout) != 0 {
urlMap.Set(constant.TIMEOUT_KEY, refconfig.RequestTimeout)
}
//getty invoke async or sync //getty invoke async or sync
urlMap.Set(constant.ASYNC_KEY, strconv.FormatBool(refconfig.async)) urlMap.Set(constant.ASYNC_KEY, strconv.FormatBool(refconfig.async))
......
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