Skip to content

Commit

Permalink
Add limit for getQueueHead call
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelavila authored and Walter Beegle committed Jun 6, 2020
1 parent c787b07 commit 437c832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provider/queue/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func (q *Queue) work() {
}

func (q *Queue) getQueueHead() (*query.Result, error) {
qry := query.Query{Orders: []query.Order{query.OrderByKey{}}}
qry := query.Query{Orders: []query.Order{query.OrderByKey{}}, Limit: 1}
results, err := q.ds.Query(qry)
if err != nil {
return nil, err
Expand Down

0 comments on commit 437c832

Please sign in to comment.