Skip to content

Commit 376e293

Browse files
authored
refactor: 👷 clean unused parameter. (#1322)
1 parent fe2dcef commit 376e293

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

‎pkg/epp/scheduling/framework/plugins/picker/max_score_picker.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,13 @@ func NewMaxScorePicker(maxNumOfEndpoints int) *MaxScorePicker {
6060
return &MaxScorePicker{
6161
typedName: plugins.TypedName{Type: MaxScorePickerType, Name: MaxScorePickerType},
6262
maxNumOfEndpoints: maxNumOfEndpoints,
63-
randomGenerator: rand.New(rand.NewSource(time.Now().UnixNano())),
6463
}
6564
}
6665

6766
// MaxScorePicker picks pod(s) with the maximum score from the list of candidates.
6867
type MaxScorePicker struct {
6968
typedName plugins.TypedName
70-
maxNumOfEndpoints int // maximum number of endpoints to pick
71-
randomGenerator *rand.Rand // randomGenerator for randomly pick endpoint on tie-break
69+
maxNumOfEndpoints int // maximum number of endpoints to pick
7270
}
7371

7472
// WithName sets the picker's name
@@ -118,5 +116,4 @@ func (p *MaxScorePicker) Pick(ctx context.Context, cycleState *types.CycleState,
118116
}
119117

120118
return &types.ProfileRunResult{TargetPods: targetPods}
121-
122119
}

0 commit comments

Comments
 (0)