Skip to content

Commit 430e90b

Browse files
committed
Replace sort.Sort with sort.Ints
Fix staticcheck issue
1 parent c3c5af9 commit 430e90b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/pqueue/pqueue_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func TestUnsortedInsert(t *testing.T) {
4949
equal(t, pq.Len(), c)
5050
equal(t, cap(pq), c)
5151

52-
sort.Sort(sort.IntSlice(ints))
52+
sort.Ints(ints)
5353

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

nsqd/in_flight_pqueue_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func TestUnsortedInsert(t *testing.T) {
3939
test.Equal(t, c, len(pq))
4040
test.Equal(t, c, cap(pq))
4141

42-
sort.Sort(sort.IntSlice(ints))
42+
sort.Ints(ints)
4343

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

0 commit comments

Comments
 (0)