From 71f700f0758e12dd4d30e7258df45c53650a9f6a Mon Sep 17 00:00:00 2001 From: in-void Date: Tue, 11 Apr 2023 23:38:12 +0200 Subject: [PATCH] format pong handler --- internal/websocket/common/client.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/websocket/common/client.go b/internal/websocket/common/client.go index 47b8cf0..0877694 100644 --- a/internal/websocket/common/client.go +++ b/internal/websocket/common/client.go @@ -57,7 +57,11 @@ func (c *Client) readPump() { c.conn.SetReadLimit(maxMessageSize) c.conn.SetReadDeadline(time.Now().Add(pongWait)) - c.conn.SetPongHandler(func(string) error { c.conn.SetReadDeadline(time.Now().Add(pongWait)); return nil }) + c.conn.SetPongHandler(func(string) error { + c.conn.SetReadDeadline(time.Now().Add(pongWait)) + + return nil + }) for { _, message, err := c.conn.ReadMessage()