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

fix: delete logic of invocation get invoker

parent 968fc436
No related branches found
No related tags found
No related merge requests found
......@@ -121,7 +121,6 @@ func (invoker *baseClusterInvoker) doSelect(lb cluster.LoadBalance, invocation p
func (invoker *baseClusterInvoker) doSelectInvoker(lb cluster.LoadBalance, invocation protocol.Invocation, invokers []protocol.Invoker, invoked []protocol.Invoker) protocol.Invoker {
if len(invokers) == 0 {
logger.Errorf("the invokers of %s is nil. ", invocation.Invoker().GetUrl().ServiceKey())
return nil
}
go protocol.TryRefreshBlackList()
......@@ -130,7 +129,7 @@ func (invoker *baseClusterInvoker) doSelectInvoker(lb cluster.LoadBalance, invoc
return invokers[0]
}
protocol.SetInvokerUnhealthyStatus(invokers[0])
logger.Errorf("the invokers of %s is nil. ", invocation.Invoker().GetUrl().ServiceKey())
logger.Errorf("the invokers of %s is nil. ", invokers[0].GetUrl().ServiceKey())
return nil
}
......
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