diff --git a/.travis.yml b/.travis.yml index e6d2f7f..b19e27c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 @@ -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 diff --git a/internal/p2p/gossip.go b/internal/p2p/gossip.go index 814cd44..74b4a70 100644 --- a/internal/p2p/gossip.go +++ b/internal/p2p/gossip.go @@ -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 }