scheduler: cleanup unused parameters in unschedulableQ

parent 118e33df
...@@ -297,7 +297,7 @@ func NewPriorityQueueWithClock(stop <-chan struct{}, clock util.Clock) *Priority ...@@ -297,7 +297,7 @@ func NewPriorityQueueWithClock(stop <-chan struct{}, clock util.Clock) *Priority
stop: stop, stop: stop,
podBackoff: util.CreatePodBackoffWithClock(1*time.Second, 10*time.Second, clock), podBackoff: util.CreatePodBackoffWithClock(1*time.Second, 10*time.Second, clock),
activeQ: util.NewHeap(podInfoKeyFunc, activeQComp), activeQ: util.NewHeap(podInfoKeyFunc, activeQComp),
unschedulableQ: newUnschedulablePodsMap(clock), unschedulableQ: newUnschedulablePodsMap(),
nominatedPods: newNominatedPodMap(), nominatedPods: newNominatedPodMap(),
moveRequestCycle: -1, moveRequestCycle: -1,
} }
...@@ -818,7 +818,7 @@ func (u *UnschedulablePodsMap) clear() { ...@@ -818,7 +818,7 @@ func (u *UnschedulablePodsMap) clear() {
} }
// newUnschedulablePodsMap initializes a new object of UnschedulablePodsMap. // newUnschedulablePodsMap initializes a new object of UnschedulablePodsMap.
func newUnschedulablePodsMap(clock util.Clock) *UnschedulablePodsMap { func newUnschedulablePodsMap() *UnschedulablePodsMap {
return &UnschedulablePodsMap{ return &UnschedulablePodsMap{
podInfoMap: make(map[string]*podInfo), podInfoMap: make(map[string]*podInfo),
keyFunc: util.GetPodFullName, keyFunc: util.GetPodFullName,
......
...@@ -647,7 +647,7 @@ func TestUnschedulablePodsMap(t *testing.T) { ...@@ -647,7 +647,7 @@ func TestUnschedulablePodsMap(t *testing.T) {
for _, test := range tests { for _, test := range tests {
t.Run(test.name, func(t *testing.T) { t.Run(test.name, func(t *testing.T) {
upm := newUnschedulablePodsMap(nil) upm := newUnschedulablePodsMap()
for _, p := range test.podsToAdd { for _, p := range test.podsToAdd {
upm.addOrUpdate(newPodInfoNoTimestamp(p)) upm.addOrUpdate(newPodInfoNoTimestamp(p))
} }
......
Markdown is supported
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