File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1313 runs-on : ubuntu-latest
1414 strategy :
1515 matrix :
16- go-version : [1.20.x, 1.21 .x]
16+ go-version : [1.20.x, 1.22 .x]
1717 steps :
1818 - name : Setup Go
1919 uses : actions/setup-go@v4
Original file line number Diff line number Diff line change 1414 uses : actions/checkout@v4
1515
1616 - name : golangci-lint
17- uses : golangci/golangci-lint-action@v3
17+ uses : golangci/golangci-lint-action@v4
Original file line number Diff line number Diff line change @@ -95,13 +95,13 @@ func TestFutureRecover(t *testing.T) {
9595 time .Sleep (10 * time .Millisecond )
9696 p2 .Failure (errors .New ("recover Future failure" ))
9797 }()
98- future := p1 .Future ().Map (func (v * int ) (* int , error ) {
98+ future := p1 .Future ().Map (func (_ * int ) (* int , error ) {
9999 return nil , errors .New ("map error" )
100- }).FlatMap (func (v * int ) (Future [int ], error ) {
100+ }).FlatMap (func (_ * int ) (Future [int ], error ) {
101101 p2 := NewPromise [int ]()
102102 p2 .Failure (errors .New ("flatMap Future failure" ))
103103 return p2 .Future (), nil
104- }).FlatMap (func (v * int ) (Future [int ], error ) {
104+ }).FlatMap (func (_ * int ) (Future [int ], error ) {
105105 return nil , errors .New ("flatMap error" )
106106 }).Recover (func () (* int , error ) {
107107 return nil , errors .New ("recover error" )
Original file line number Diff line number Diff line change @@ -156,14 +156,14 @@ func TestShardedMap_ConstructorArguments(t *testing.T) {
156156 }, "nonpositive shards" )
157157
158158 assert .PanicMsgContains (t , func () {
159- NewShardedMapWithHash [int , string ](0 , func (i int ) uint64 { return 1 })
159+ NewShardedMapWithHash [int , string ](0 , func (_ int ) uint64 { return 1 })
160160 }, "nonpositive shards" )
161161
162162 assert .PanicMsgContains (t , func () {
163163 NewShardedMapWithHash [int , string ](2 , nil )
164164 }, "hashFunc is nil" )
165165
166- NewShardedMapWithHash [int , string ](2 , func (i int ) uint64 { return 1 })
166+ NewShardedMapWithHash [int , string ](2 , func (_ int ) uint64 { return 1 })
167167}
168168
169169func TestConcurrentMap_MemoryLeaks (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments