Skip to content

Commit

Permalink
Fix linter errors (#697)
Browse files Browse the repository at this point in the history
* Fix linter errros

* Change golanci version i yaml file
  • Loading branch information
0xAleksaOpacic authored Aug 26, 2022
1 parent 869742f commit 7e4c3d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
version: v1.49.0
args:
--timeout=3m
-E whitespace
Expand Down
4 changes: 2 additions & 2 deletions txpool/event_subscription_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package txpool

import (
"context"
"crypto/rand"
cryptoRand "crypto/rand"
"math/big"
mathRand "math/rand"
"sync"
Expand Down Expand Up @@ -42,7 +42,7 @@ func shuffleTxPoolEvents(

randomEventType := func(supported bool) proto.EventType {
for {
randNum, _ := rand.Int(rand.Reader, big.NewInt(int64(len(supportedTypes))))
randNum, _ := cryptoRand.Int(cryptoRand.Reader, big.NewInt(int64(len(supportedTypes))))

randType := allEvents[randNum.Int64()]
if tempSubscription.eventSupported(randType) == supported {
Expand Down

0 comments on commit 7e4c3d7

Please sign in to comment.