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
be89b70c
Commit
be89b70c
authored
4 years ago
by
LaurenceLiZhixin
Browse files
Options
Downloads
Patches
Plain Diff
fix: chinglish
parent
ed0b1746
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/cluster_impl/base_cluster_invoker.go
+1
-1
1 addition, 1 deletion
cluster/cluster_impl/base_cluster_invoker.go
common/extension/conn_checker.go
+2
-1
2 additions, 1 deletion
common/extension/conn_checker.go
with
3 additions
and
2 deletions
cluster/cluster_impl/base_cluster_invoker.go
+
1
−
1
View file @
be89b70c
...
@@ -136,7 +136,7 @@ func (invoker *baseClusterInvoker) doSelectInvoker(lb cluster.LoadBalance, invoc
...
@@ -136,7 +136,7 @@ func (invoker *baseClusterInvoker) doSelectInvoker(lb cluster.LoadBalance, invoc
selectedInvoker
:=
lb
.
Select
(
invokers
,
invocation
)
selectedInvoker
:=
lb
.
Select
(
invokers
,
invocation
)
//judge
to
if the selectedInvoker is invoked and available
//judge if the selected
Invoker is invoked and available
if
(
!
selectedInvoker
.
IsAvailable
()
&&
invoker
.
availablecheck
)
||
isInvoked
(
selectedInvoker
,
invoked
)
{
if
(
!
selectedInvoker
.
IsAvailable
()
&&
invoker
.
availablecheck
)
||
isInvoked
(
selectedInvoker
,
invoked
)
{
protocol
.
SetInvokerUnhealthyStatus
(
selectedInvoker
)
protocol
.
SetInvokerUnhealthyStatus
(
selectedInvoker
)
otherInvokers
:=
getOtherInvokers
(
invokers
,
selectedInvoker
)
otherInvokers
:=
getOtherInvokers
(
invokers
,
selectedInvoker
)
...
...
This diff is collapsed.
Click to expand it.
common/extension/conn_checker.go
+
2
−
1
View file @
be89b70c
...
@@ -33,7 +33,8 @@ func SetConnChecker(name string, fcn func(_ *common.URL) router.ConnChecker) {
...
@@ -33,7 +33,8 @@ func SetConnChecker(name string, fcn func(_ *common.URL) router.ConnChecker) {
// GetHealthChecker gets the HealthChecker with @name
// GetHealthChecker gets the HealthChecker with @name
func
GetConnChecker
(
name
string
,
url
*
common
.
URL
)
router
.
ConnChecker
{
func
GetConnChecker
(
name
string
,
url
*
common
.
URL
)
router
.
ConnChecker
{
if
connCheckers
[
name
]
==
nil
{
f
,
ok
:=
connCheckers
[
name
]
if
!
ok
||
f
==
nil
{
panic
(
"connCheckers for "
+
name
+
" is not existing, make sure you have import the package."
)
panic
(
"connCheckers for "
+
name
+
" is not existing, make sure you have import the package."
)
}
}
return
connCheckers
[
name
](
url
)
return
connCheckers
[
name
](
url
)
...
...
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