Skip to content

Commit 9768e12

Browse files
committedApr 4, 2019
Remove debugging leftovers
1 parent b077e28 commit 9768e12

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed
 

‎websocket.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"context"
66
"fmt"
77
"io"
8-
"log"
98
"sync"
109
"time"
1110

@@ -211,8 +210,6 @@ func (c *Conn) readLoop() {
211210
case <-c.closed:
212211
return
213212
case b := <-c.readBytes:
214-
log.Println("readbytes", left)
215-
216213
if int64(len(b)) > left {
217214
b = b[:left]
218215
}

‎websocket_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func TestConnection(t *testing.T) {
3030
}
3131
defer c.Close(websocket.StatusInternalError, "")
3232

33-
ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)
33+
ctx, cancel := context.WithTimeout(r.Context(), time.Second*5)
3434
defer cancel()
3535

3636
var v interface{}

0 commit comments

Comments
 (0)
Please sign in to comment.