Skip to content

Commit

Permalink
chore: remove refs to deprecated io/ioutil (#223)
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
  • Loading branch information
testwill authored Oct 27, 2023
1 parent c5f2d89 commit a542ac2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/drivers/nats/kv/etcd_encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package kv
import (
"fmt"
"io"
"io/ioutil"
"strings"

"github.com/klauspost/compress/s2"
Expand Down Expand Up @@ -94,7 +93,7 @@ func (*PlainCodec) Encode(src []byte, dst io.Writer) error {
}

func (*PlainCodec) Decode(src io.Reader, dst io.Writer) error {
b, err := ioutil.ReadAll(src)
b, err := io.ReadAll(src)
if err != nil {
return err
}
Expand Down

0 comments on commit a542ac2

Please sign in to comment.