feat: remove redundant readline (#1027)

This commit is contained in:
charlie liu 2023-09-07 17:00:02 +08:00 committed by GitHub
parent 94a4199855
commit 35e48b6144
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,7 +136,6 @@ func (c *Client) readMessage() {
}
switch messageType {
case MessageBinary:
_ = c.conn.SetReadDeadline(pongWait)
parseDataErr := c.handleMessage(message)
if parseDataErr != nil {
c.closedErr = parseDataErr