Skip to content
Snippets Groups Projects
Commit 50c78127 authored by vito.he's avatar vito.he
Browse files

Add:2.6.0 interface in urlmap

parent 11dd5099
No related branches found
No related tags found
No related merge requests found
......@@ -82,7 +82,7 @@ func (refconfig *ReferenceConfig) GetRPCService() config.RPCService {
func (refconfig *ReferenceConfig) getUrlMap() url.Values {
urlMap := url.Values{}
urlMap.Set(constant.INTERFACE_KEY, refconfig.InterfaceName)
urlMap.Set(constant.TIMESTAMP_KEY, strconv.FormatInt(time.Now().Unix(), 10))
urlMap.Set(constant.CLUSTER_KEY, refconfig.Cluster)
urlMap.Set(constant.LOADBALANCE_KEY, refconfig.Loadbalance)
......
......@@ -112,7 +112,7 @@ func (srvconfig *ServiceConfig) Implement(s config.RPCService) {
func (srvconfig *ServiceConfig) getUrlMap() url.Values {
urlMap := url.Values{}
urlMap.Set(constant.INTERFACE_KEY, srvconfig.InterfaceName)
urlMap.Set(constant.TIMESTAMP_KEY, strconv.FormatInt(time.Now().Unix(), 10))
urlMap.Set(constant.CLUSTER_KEY, srvconfig.Cluster)
urlMap.Set(constant.LOADBALANCE_KEY, srvconfig.Loadbalance)
......
......@@ -312,7 +312,6 @@ func (r *ZkRegistry) register(c config.URL) error {
return jerrors.Annotatef(err, "zkclient.Create(path:%s)", dubboPath)
}
params.Add("anyhost", "true")
params.Add("interface", c.Service())
// dubbo java consumer来启动找provider url时,因为category不匹配,会找不到provider,导致consumer启动不了,所以使用consumers&providers
// DubboRole = [...]string{"consumer", "", "", "provider"}
......@@ -362,7 +361,6 @@ func (r *ZkRegistry) register(c config.URL) error {
}
params.Add("protocol", c.Protocol)
params.Add("interface", c.Service())
params.Add("category", (config.RoleType(config.CONSUMER)).String())
params.Add("dubbo", "dubbogo-consumer-"+version.Version)
......
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