Skip to content

Commit

Permalink
Add TODO for using a pool when dequeueing many
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Haudum <[email protected]>
  • Loading branch information
chaudum committed Nov 16, 2023
1 parent 65a732d commit 19a3b4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/queue/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ func (q *RequestQueue) DequeueMany(ctx context.Context, last QueueIndex, consume
defer cancel()

var idx QueueIndex
// TODO(chaudum): Use a pool
items := make([]Request, 0, maxItems)

for {
Expand Down

0 comments on commit 19a3b4e

Please sign in to comment.