Skip to content

Commit

Permalink
Fix lint errorrs
Browse files Browse the repository at this point in the history
  • Loading branch information
demdxx committed Apr 17, 2024
1 parent 452c82e commit 55e1958
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
needs: lint
strategy:
matrix:
go-version: [1.19.x, 1.20.x, 1.21.x, 1.22.x]
go-version: [1.20.x, 1.21.x, 1.22.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
Expand All @@ -60,7 +60,7 @@ jobs:
strategy:
fail-fast: false
matrix:
go-version: [1.19.x, 1.20.x, 1.21.x, 1.22.x]
go-version: [1.20.x, 1.21.x, 1.22.x]
steps:
- uses: actions/setup-go@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/geniusrabbit/notificationcenter/v2

go 1.19
go 1.20

require (
github.com/IBM/sarama v1.43.1
Expand Down
3 changes: 2 additions & 1 deletion kafka/publisher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package kafka

import (
"context"
crand "crypto/rand"
"math/rand"
"testing"
"time"
Expand Down Expand Up @@ -96,7 +97,7 @@ func TestNewPublisherPanic(t *testing.T) {
func strFromDict(strSize int) string {
const dict = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!@#$%^&*_+-=~"
var bytes = make([]byte, strSize)
_, _ = rand.Read(bytes)
_, _ = crand.Read(bytes)
for k, v := range bytes {
bytes[k] = dict[v%byte(len(dict))]
}
Expand Down

0 comments on commit 55e1958

Please sign in to comment.