File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ import (
17
17
"encoding/json"
18
18
"errors"
19
19
"io"
20
- "io/ioutil"
21
20
"net"
22
21
"net/http"
23
22
"net/url"
@@ -208,7 +207,7 @@ again:
208
207
n , err = ws .frameReader .Read (msg )
209
208
if err == io .EOF {
210
209
if trailer := ws .frameReader .TrailerReader (); trailer != nil {
211
- io .Copy (ioutil .Discard , trailer )
210
+ io .Copy (io .Discard , trailer )
212
211
}
213
212
ws .frameReader = nil
214
213
goto again
@@ -330,7 +329,7 @@ func (cd Codec[T]) Receive(ws *Conn, v interface{}) (err error) {
330
329
ws .rio .Lock ()
331
330
defer ws .rio .Unlock ()
332
331
if ws .frameReader != nil {
333
- _ , err = io .Copy (ioutil .Discard , ws .frameReader )
332
+ _ , err = io .Copy (io .Discard , ws .frameReader )
334
333
if err != nil {
335
334
return err
336
335
}
@@ -362,7 +361,7 @@ again:
362
361
return ErrFrameTooLarge
363
362
}
364
363
payloadType := frame .PayloadType ()
365
- data , err := ioutil .ReadAll (frame )
364
+ data , err := io .ReadAll (frame )
366
365
if err != nil {
367
366
return err
368
367
}
You can’t perform that action at this time.
0 commit comments