Skip to content

Commit 8eee5b9

Browse files
authored
ci: update versions in workflows (#32)
* ci: update versions in workflows * fix unused-parameter linter warnings in tests
1 parent 6b4efc0 commit 8eee5b9

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
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

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ jobs:
1414
uses: actions/checkout@v4
1515

1616
- name: golangci-lint
17-
uses: golangci/golangci-lint-action@v3
17+
uses: golangci/golangci-lint-action@v4

future_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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")

map_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

169169
func TestConcurrentMap_MemoryLeaks(t *testing.T) {

0 commit comments

Comments
 (0)