Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'internal/listenmux/mux.go')
-rw-r--r--internal/listenmux/mux.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/listenmux/mux.go b/internal/listenmux/mux.go
index ad1f468a6..f5a1ed67a 100644
--- a/internal/listenmux/mux.go
+++ b/internal/listenmux/mux.go
@@ -4,7 +4,6 @@ import (
"bytes"
"fmt"
"io"
- "io/ioutil"
"net"
"google.golang.org/grpc/credentials"
@@ -73,7 +72,7 @@ func (m *Mux) ServerHandshake(conn net.Conn) (net.Conn, credentials.AuthInfo, er
return nil, nil, fmt.Errorf("wrapped server handshake: %w", err)
}
- peeked, err := ioutil.ReadAll(io.LimitReader(conn, magicLen))
+ peeked, err := io.ReadAll(io.LimitReader(conn, magicLen))
if err != nil {
return nil, nil, fmt.Errorf("peek network stream: %w", err)
}