Skip to content
Snippets Groups Projects
Commit be89b70c authored by LaurenceLiZhixin's avatar LaurenceLiZhixin
Browse files

fix: chinglish

parent ed0b1746
No related branches found
No related tags found
No related merge requests found
...@@ -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)
......
...@@ -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)
......
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