Skip to content

Commit

Permalink
Merge pull request #302 from koinos/fix-linting
Browse files Browse the repository at this point in the history
Fix linting
  • Loading branch information
sgerbino authored Oct 7, 2024
2 parents 07c35f0 + 7d85731 commit 2168718
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
install:
- sudo gem install coveralls-lcov
- go install github.com/jandelgado/gcov2lcov@latest
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.54.2
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.61.0
- go get ./...
script:
- go build -ldflags="-X main.Commit=$(git rev-parse HEAD)" cmd/koinos-p2p/main.go
Expand All @@ -27,7 +27,7 @@ jobs:
- gcov2lcov -infile=internal.out -outfile=internal.info
- gcov2lcov -infile=node.out -outfile=node.info
- gcov2lcov -infile=p2p.out -outfile=p2p.info
- golangci-lint run ./...
- golangci-lint run --timeout=2m ./...
after_success:
- coveralls-lcov --repo-token "$COVERALLS_REPO_TOKEN" --service-name travis-pro coverage.info

Expand Down
2 changes: 1 addition & 1 deletion internal/p2p/gossip.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func readMessages(ctx context.Context, ch chan<- []byte, sub *pubsub.Subscriptio
//
for {
msg, err := sub.Next(ctx)
if err != nil && !errors.Is(context.DeadlineExceeded, err) {
if err != nil && !errors.Is(err, context.DeadlineExceeded) {
log.Warnf("Error getting message for topic %s: %s", topicName, err)
return
}
Expand Down

0 comments on commit 2168718

Please sign in to comment.