remove redundant sort

Signed-off-by: dddddai <dddwq@foxmail.com>
This commit is contained in:
dddddai 2021-12-17 10:24:33 +08:00
parent 3a743aaaa9
commit ff83773c5e
1 changed files with 0 additions and 2 deletions

View File

@ -2,7 +2,6 @@ package core
import (
"fmt"
"sort"
"k8s.io/apimachinery/pkg/util/sets"
@ -223,7 +222,6 @@ func scaleUpScheduleByReplicaDivisionPreference(
// Step 3: Calculate available replicas of all candidates
clusterAvailableReplicas := calAvailableReplicas(clusters, newSpec)
sort.Sort(TargetClustersList(clusterAvailableReplicas))
// Step 4: Begin dividing.
// Only the new replicas are considered during this scheduler, the old replicas will not be moved.