Skip to content

Commit 063541f

Browse files
committed
fix use of deprecated ioutil pkg
1 parent 1fe4134 commit 063541f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/util/grpcencoding/zstd/zstd.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package zstd
33
import (
44
"bytes"
55
"io"
6-
"io/ioutil"
76

87
"github.com/klauspost/compress/zstd"
98
"google.golang.org/grpc/encoding"
@@ -65,7 +64,7 @@ func (z *zstdWriteCloser) Close() error {
6564
}
6665

6766
func (c *compressor) Decompress(r io.Reader) (io.Reader, error) {
68-
compressed, err := ioutil.ReadAll(r)
67+
compressed, err := io.ReadAll(r)
6968
if err != nil {
7069
return nil, err
7170
}

0 commit comments

Comments
 (0)