You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2019/08/07 13:08:31 UTC
[dubbo-go] branch master updated: Fix: mis spell
This is an automated email from the ASF dual-hosted git repository.
alexstocks pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git
The following commit(s) were added to refs/heads/master by this push:
new 97a7790 Fix: mis spell
97a7790 is described below
commit 97a77902bb3a48347517fbe62b83730f59f6185d
Author: AlexStocks <al...@foxmail.com>
AuthorDate: Wed Aug 7 21:08:14 2019 +0800
Fix: mis spell
---
cluster/cluster_impl/failback_cluster_invoker.go | 2 +-
cluster/cluster_impl/failback_cluster_test.go | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/cluster/cluster_impl/failback_cluster_invoker.go b/cluster/cluster_impl/failback_cluster_invoker.go
index d7d01dd..493b491 100644
--- a/cluster/cluster_impl/failback_cluster_invoker.go
+++ b/cluster/cluster_impl/failback_cluster_invoker.go
@@ -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)
diff --git a/cluster/cluster_impl/failback_cluster_test.go b/cluster/cluster_impl/failback_cluster_test.go
index 2cdd14e..c94347a 100644
--- a/cluster/cluster_impl/failback_cluster_test.go
+++ b/cluster/cluster_impl/failback_cluster_test.go
@@ -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())
}