From 16736c9410f86cc78a6f988f856a7b7175c695c3 Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Wed, 20 Nov 2024 20:31:24 +0100 Subject: [PATCH] remove duplicate logging --- internal/websocket/broadcast.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/internal/websocket/broadcast.go b/internal/websocket/broadcast.go index c2bd987..7f0e1b2 100644 --- a/internal/websocket/broadcast.go +++ b/internal/websocket/broadcast.go @@ -31,8 +31,6 @@ func SendPermanentBroadCastMessage() { if time.Now().Sub(client.LastPong) > (10 * time.Second) { // Remove unresponsive client client.Conn.Close() - delete(Clients, client.Conn.LocalAddr()) - helper.Logger.Info("Client timed out", "lastPong", client.LastPong, "host", client.RealIP, "clients", len(Clients)) } } <-tick.C