Skip to content
Snippets Groups Projects
Commit 78cd7cfb authored by Xin.Zh's avatar Xin.Zh Committed by GitHub
Browse files

Merge pull request #160 from xujianhai666/feat-remove-ineffassign

remove ineffassign
parents 45679662 893322b0
No related branches found
No related tags found
No related merge requests found
......@@ -131,7 +131,6 @@ func (invoker *failbackClusterInvoker) Invoke(invocation protocol.Invocation) pr
return &protocol.RPCResult{}
}
url := invokers[0].GetUrl()
methodName := invocation.MethodName()
//Get the service loadbalance config
lb := url.GetParam(constant.LOADBALANCE_KEY, constant.DEFAULT_LOADBALANCE)
......@@ -146,7 +145,6 @@ func (invoker *failbackClusterInvoker) Invoke(invocation protocol.Invocation) pr
var result protocol.Result
ivk := invoker.doSelect(loadbalance, invocation, invokers, invoked)
invoked = append(invoked, ivk)
//DO INVOKE
result = ivk.Invoke(invocation)
if result.Error() != nil {
......
......@@ -64,7 +64,6 @@ func (invoker *failsafeClusterInvoker) Invoke(invocation protocol.Invocation) pr
var result protocol.Result
ivk := invoker.doSelect(loadbalance, invocation, invokers, invoked)
invoked = append(invoked, ivk)
//DO INVOKE
result = ivk.Invoke(invocation)
if result.Error() != 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