Skip to content

Commit

Permalink
remove log entries for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
ftl committed May 13, 2021
1 parent 26b3184 commit 779e090
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ func (c *Client) writeLoop(conn clientConn, incoming <-chan Message) {
if cmd.reply != nil {
currentCommand = &cmd
currentDeadline = now.Add(c.timeout)
log.Printf("cmd %v now %v deadline %v", cmd, now, currentDeadline)
}
err := conn.WriteMessage(websocket.TextMessage, []byte(cmd.String()))
if err != nil {
Expand All @@ -259,7 +258,6 @@ func (c *Client) writeLoop(conn clientConn, incoming <-chan Message) {
} else {
now := time.Now()
timer.Reset(currentDeadline.Sub(now))
log.Printf("cmd %v now %v deadline %v", *currentCommand, now, currentDeadline)
select {
case <-c.disconnectChan:
return
Expand Down

0 comments on commit 779e090

Please sign in to comment.