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:
Koichi Shiraishi
2024-10-10 20:36:24 +09:00
parent 41c56d467b
commit 0cf77c02f8
76 changed files with 256 additions and 314 deletions
+1 -2
View File
@@ -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)