Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pkg/pipeline/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ func NewQueue(l int) *Queue {
}
}
q := &Queue{
Queue: make([]Event, 0, l),
// don't preallocate l slots: every live bucket would hold them, Add grows the queue up to L
Queue: make([]Event, 0),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a one line comment to make sure we don't reintroduce this in the future.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added in d48749b.

L: l,
}
log.WithField("Capacity", q.L).Debugf("Creating queue")
Expand Down
Loading