forked from quic-go/quic-go
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:
@@ -4,7 +4,6 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"net"
|
||||
"net/http"
|
||||
@@ -102,7 +101,7 @@ func (s *Server) handleConn(conn quic.Connection) {
|
||||
}
|
||||
|
||||
func (s *Server) handleStream(str quic.Stream) error {
|
||||
reqBytes, err := ioutil.ReadAll(str)
|
||||
reqBytes, err := io.ReadAll(str)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user