Skip to content
Snippets Groups Projects
Commit 83a7380c authored by AlexStocks's avatar AlexStocks
Browse files

Fix: mis spell

parent 1bcf6d83
No related branches found
No related tags found
No related merge requests found
......@@ -142,7 +142,7 @@ func (invoker *failbackClusterInvoker) Invoke(invocation protocol.Invocation) pr
}
loadbalance := extension.GetLoadbalance(lb)
invoked := make([]protocol.Invoker, 0)
invoked := make([]protocol.Invoker, 0, len(invokers))
var result protocol.Result
ivk := invoker.doSelect(loadbalance, invocation, invokers, invoked)
......
......@@ -161,7 +161,7 @@ func Test_FailbackRetryFailed(t *testing.T) {
invoker.EXPECT().Destroy().Return()
clusterInvoker.Destroy()
// after destory, the tasklist will be empty
// after destroy, the taskList will be empty
assert.Equal(t, int64(0), clusterInvoker.taskList.Len())
}
......
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