Skip to content
Snippets Groups Projects
Commit a560c3c5 authored by AlexStocks's avatar AlexStocks
Browse files

Rem: version;

Mod: translate chinese to english
parent 4abb36f1
No related branches found
No related tags found
No related merge requests found
...@@ -232,8 +232,9 @@ func (r *zkRegistry) Register(conf common.URL) error { ...@@ -232,8 +232,9 @@ func (r *zkRegistry) Register(conf common.URL) error {
// Check if the service has been registered // Check if the service has been registered
r.cltLock.Lock() r.cltLock.Lock()
// 注意此处与consumerZookeeperRegistry的差异,consumer用的是conf.Path, // Note the difference between consumer and consumerZookeeperRegistry (consumer use conf.Path).
// 因为consumer要提供watch功能给selector使用, provider允许注册同一个service的多个group or version // Because the consumer wants to provide monitoring functions for the selector,
// the provider allows multiple groups or versions of the same service to be registered.
_, ok = r.services[conf.Key()] _, ok = r.services[conf.Key()]
r.cltLock.Unlock() r.cltLock.Unlock()
if ok { if ok {
...@@ -298,7 +299,8 @@ func (r *zkRegistry) register(c common.URL) error { ...@@ -298,7 +299,8 @@ func (r *zkRegistry) register(c common.URL) error {
} }
params.Add("anyhost", "true") params.Add("anyhost", "true")
// dubbo java consumer来启动找provider url时,因为category不匹配,会找不到provider,导致consumer启动不了,所以使用consumers&providers // Dubbo java consumer to start looking for the provider url,because the category does not match,
// the provider will not find, causing the consumer can not start, so we use consumers.
// DubboRole = [...]string{"consumer", "", "", "provider"} // DubboRole = [...]string{"consumer", "", "", "provider"}
// params.Add("category", (RoleType(PROVIDER)).Role()) // params.Add("category", (RoleType(PROVIDER)).Role())
params.Add("category", (common.RoleType(common.PROVIDER)).String()) params.Add("category", (common.RoleType(common.PROVIDER)).String())
......
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package version
const (
Version = "2.6.0"
Name = "dubbogo"
DATE = "2019/05/06"
)
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