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
93374a2e
Commit
93374a2e
authored
4 years ago
by
wangwx
Browse files
Options
Downloads
Patches
Plain Diff
fix glint
parent
132ca251
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
cluster/router/local/factory.go
+1
-1
1 addition, 1 deletion
cluster/router/local/factory.go
config_center/zookeeper/impl_test.go
+0
-7
0 additions, 7 deletions
config_center/zookeeper/impl_test.go
with
1 addition
and
8 deletions
cluster/router/local/factory.go
+
1
−
1
View file @
93374a2e
...
...
@@ -38,6 +38,6 @@ func newLocalPriorityRouteFactory() router.PriorityRouterFactory {
}
// NewPriorityRouter construct a new NewLocalDiscRouter via url
func
(
f
*
LocalPriorityRouteFactory
)
NewPriorityRouter
(
url
*
common
.
URL
)
(
router
.
PriorityRouter
,
error
)
{
func
(
f
*
LocalPriorityRouteFactory
)
NewPriorityRouter
(
url
*
common
.
URL
,
ch
chan
struct
{}
)
(
router
.
PriorityRouter
,
error
)
{
return
NewLocalPriorityRouter
(
url
)
}
This diff is collapsed.
Click to expand it.
config_center/zookeeper/impl_test.go
+
0
−
7
View file @
93374a2e
...
...
@@ -120,11 +120,6 @@ func TestGetConfig(t *testing.T) {
assert
.
Equal
(
t
,
""
,
configs
)
}
func
printMap
(
key
,
value
interface
{})
bool
{
fmt
.
Println
(
key
,
value
)
return
true
}
func
TestAddListener
(
t
*
testing
.
T
)
{
ts
,
reg
:=
initZkData
(
""
,
t
)
defer
func
()
{
...
...
@@ -132,11 +127,9 @@ func TestAddListener(t *testing.T) {
err
:=
ts
.
Stop
()
assert
.
NoError
(
t
,
err
)
}()
reg
.
cacheListener
.
keyListeners
.
Range
(
printMap
)
listener
:=
&
mockDataListener
{}
reg
.
AddListener
(
dubboPropertyFileName
,
listener
)
reg
.
cacheListener
.
keyListeners
.
Range
(
printMap
)
listener
.
wg
.
Add
(
1
)
data
:=
`
dubbo.consumer.request_timeout=3s
...
...
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