Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
22a7f0099
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2022
22a7f0099
Commits
4844ea18
Commit
4844ea18
authored
5 years ago
by
AlexStocks
Browse files
Options
Downloads
Plain Diff
Fix: delete chinese comment
parents
e215a435
4c7963c0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
registry/zookeeper/registry.go
+5
-3
5 additions, 3 deletions
registry/zookeeper/registry.go
version/version.go
+0
-24
0 additions, 24 deletions
version/version.go
with
5 additions
and
27 deletions
registry/zookeeper/registry.go
+
5
−
3
View file @
4844ea18
...
...
@@ -231,8 +231,9 @@ func (r *zkRegistry) Register(conf common.URL) error {
// Check if the service has been registered
r
.
cltLock
.
Lock
()
// 注意此处与consumerZookeeperRegistry的差异,consumer用的是conf.Path,
// 因为consumer要提供watch功能给selector使用, provider允许注册同一个service的多个group or constant
// Note the difference between consumer and consumerZookeeperRegistry (consumer use conf.Path).
// 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
()]
r
.
cltLock
.
Unlock
()
if
ok
{
...
...
@@ -297,7 +298,8 @@ func (r *zkRegistry) register(c common.URL) error {
}
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"}
// params.Add("category", (RoleType(PROVIDER)).Role())
params
.
Add
(
"category"
,
(
common
.
RoleType
(
common
.
PROVIDER
))
.
String
())
...
...
This diff is collapsed.
Click to expand it.
version/version.go
deleted
100644 → 0
+
0
−
24
View file @
e215a435
/*
* 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"
)
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment