mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
all: remove use io/ioutil deprecated package & fix some deprecated thing
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
This commit is contained in:
@@ -29,7 +29,6 @@ import (
|
||||
"encoding/binary"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"math"
|
||||
"reflect"
|
||||
"time"
|
||||
@@ -2745,7 +2744,7 @@ func (s *sock) nonBlockingRead(ctx context.Context, dst usermem.IOSequence, peek
|
||||
|
||||
if !isPacket && trunc {
|
||||
w = &tcpip.LimitedWriter{
|
||||
W: ioutil.Discard,
|
||||
W: io.Discard,
|
||||
N: dst.NumBytes(),
|
||||
}
|
||||
res, err = s.Endpoint.Read(w, readOptions)
|
||||
|
||||
Reference in New Issue
Block a user