Skip to content

Commit

Permalink
Clean comments from ping() method
Browse files Browse the repository at this point in the history
  • Loading branch information
zoujiaqing committed Sep 11, 2024
1 parent ed33d1c commit 94d8268
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Client.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ func (c *Client) startPingTimer() {
log.Printf("连接已关闭,停止PING")
return
}
log.Printf("持续PING")
c.ping()
case <-c.reconnectCh:
c.pingValue = -1
Expand All @@ -226,7 +225,6 @@ func (c *Client) ping() {
}

c.pingValue = pingValue
log.Printf("Ping: %d", c.pingValue)
}

func (c *Client) handleMessage(conn *RpcConnection, data []byte) []byte {
Expand Down

0 comments on commit 94d8268

Please sign in to comment.