diff --git a/cluster/cluster_impl/failback_cluster_invoker.go b/cluster/cluster_impl/failback_cluster_invoker.go index 10420d9be07dbed29ab637aa9bbbb242ac037897..47e626a0ea5e5eb2b8165103f90252f21466674e 100644 --- a/cluster/cluster_impl/failback_cluster_invoker.go +++ b/cluster/cluster_impl/failback_cluster_invoker.go @@ -101,7 +101,7 @@ func (invoker *failbackClusterInvoker) process(ctx context.Context) { } func (invoker *failbackClusterInvoker) tryTimerTaskProc(ctx context.Context, retryTask *retryTimerTask) { - var invoked []protocol.Invoker + invoked := make([]protocol.Invoker, 0) invoked = append(invoked, retryTask.lastInvoker) retryInvoker := invoker.doSelect(retryTask.loadbalance, retryTask.invocation, retryTask.invokers, invoked)