Skip to content

Commit b674e9a

Browse files
committed
optimize
1 parent 406ce44 commit b674e9a

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

collection/skiplist/skipmaplist_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,4 +169,4 @@ func TestSkipMapList_Len(t *testing.T) {
169169

170170
sml.Delete("b")
171171
assert.Equal(t, 0, sml.Len())
172-
}
172+
}

concurrent/queue/linked_queue.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
package queue
1616

1717
import (
18-
"github.com/igevin/algokit/collection/queue"
1918
"sync/atomic"
2019
"unsafe"
20+
21+
"github.com/igevin/algokit/collection/queue"
2122
)
2223

2324
// ConcurrentLinkedQueue 无界并发安全队列

concurrent/queue/linked_queue_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ package queue
1616

1717
import (
1818
"fmt"
19-
"github.com/stretchr/testify/assert"
20-
"github.com/stretchr/testify/require"
2119
"math/rand"
2220
"sync"
2321
"sync/atomic"
2422
"testing"
23+
24+
"github.com/stretchr/testify/assert"
25+
"github.com/stretchr/testify/require"
2526
)
2627

2728
func TestConcurrentQueue_Enqueue(t *testing.T) {

0 commit comments

Comments
 (0)