update golangci-lint action to v3, golangci-lint to v1.48.0 (#3499)

* run gofmt -s -w

* stop using the deprecated io/ioutil package

* update golangci-lint action to v3, golangci-lint to v1.48.0
This commit is contained in:
Marten Seemann
2022-08-10 18:50:48 +02:00
committed by GitHub
parent 7ebe1430ef
commit 498475fa60
20 changed files with 39 additions and 37 deletions

View File

@@ -6,7 +6,6 @@ import (
"context"
"fmt"
"io"
"io/ioutil"
mrand "math/rand"
"net"
"time"
@@ -90,7 +89,7 @@ var _ = Describe("Handshake tests", func() {
return nil
}
fmt.Fprintf(GinkgoWriter, "%s qlog tracing connection %x\n", p, connectionID)
return utils.NewBufferedWriteCloser(bufio.NewWriter(&bytes.Buffer{}), ioutil.NopCloser(nil))
return utils.NewBufferedWriteCloser(bufio.NewWriter(&bytes.Buffer{}), io.NopCloser(nil))
}))
}
if enableCustomTracer {