Skip to content

Commit

Permalink
Merge pull request #1206 from lelenanam/ints
Browse files Browse the repository at this point in the history
Replace sort.Sort with sort.Ints
  • Loading branch information
ploxiln authored Oct 29, 2019
2 parents c3c5af9 + 430e90b commit dbfb2d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/pqueue/pqueue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func TestUnsortedInsert(t *testing.T) {
equal(t, pq.Len(), c)
equal(t, cap(pq), c)

sort.Sort(sort.IntSlice(ints))
sort.Ints(ints)

for i := 0; i < c; i++ {
item, _ := pq.PeekAndShift(int64(ints[len(ints)-1]))
Expand Down
2 changes: 1 addition & 1 deletion nsqd/in_flight_pqueue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestUnsortedInsert(t *testing.T) {
test.Equal(t, c, len(pq))
test.Equal(t, c, cap(pq))

sort.Sort(sort.IntSlice(ints))
sort.Ints(ints)

for i := 0; i < c; i++ {
msg, _ := pq.PeekAndShift(int64(ints[len(ints)-1]))
Expand Down

0 comments on commit dbfb2d8

Please sign in to comment.