mirror of https://github.com/gorilla/websocket.git
fix: lint example
Signed-off-by: rfyiamcool <rfyiamcool@163.com>
This commit is contained in:
parent
d08ee1ad9b
commit
316861440d
|
@ -57,8 +57,6 @@ func pumpStdin(ws *websocket.Conn, w io.Writer) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func pumpStdout(ws *websocket.Conn, r io.Reader, done chan struct{}) {
|
func pumpStdout(ws *websocket.Conn, r io.Reader, done chan struct{}) {
|
||||||
defer func() {
|
|
||||||
}()
|
|
||||||
s := bufio.NewScanner(r)
|
s := bufio.NewScanner(r)
|
||||||
for s.Scan() {
|
for s.Scan() {
|
||||||
ws.SetWriteDeadline(time.Now().Add(writeWait))
|
ws.SetWriteDeadline(time.Now().Add(writeWait))
|
||||||
|
|
Loading…
Reference in New Issue