Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 26 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,52 @@
version: "2"
linters:
enable:
- asciicheck
- bidichk
- bodyclose
- canonicalheader
- contextcheck
- copyloopvar
- durationcheck
- errcheck
- errchkjson
- errname
- errorlint
- exptostd
- fatcontext
- gocheckcompilerdirectives
- gocritic
- godot
- govet
- ineffassign
- intrange
- mirror
- misspell
- modernize
- nakedret
- nilerr
- nilnesserr
- nilnil
- noctx
- nolintlint
- nosprintfhostport
- perfsprint
- predeclared
- rowserrcheck
- reassign
- recvcheck
- revive
- rowserrcheck
- sqlclosecheck
- staticcheck
- thelper
- unconvert
- unparam
- unqueryvet
- unused
- usestdlibvars
- usetesting
- wastedassign
- gosec
- unparam
- wrapcheck
settings:
errorlint:
Expand Down
4 changes: 2 additions & 2 deletions storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,10 +381,10 @@ func TestConcurrentStoreLoad(t *testing.T) {
var wg sync.WaitGroup
wg.Add(goroutines)

for i := 0; i < goroutines; i++ {
for range goroutines {
go func() {
defer wg.Done()
for j := 0; j < iterations; j++ {
for range iterations {
key := "concurrent/key"
value := []byte("data")
if err := s.Store(ctx, key, value); err != nil {
Expand Down