diff --git a/scheduler/select.go b/scheduler/select.go index 133156048..db9a31632 100644 --- a/scheduler/select.go +++ b/scheduler/select.go @@ -21,6 +21,7 @@ func NewLimitIterator(ctx Context, source RankIterator, limit int, scoreThreshol limit: limit, maxSkip: maxSkip, scoreThreshold: scoreThreshold, + skippedNodes: make([]*RankedNode, 0, limit+maxSkip), } return iter }