From 5db753eb3179f0de593242ce4750d332131e6d83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Dry=C5=9B?= Date: Tue, 14 Nov 2023 10:27:50 +0100 Subject: [PATCH] feat: investigate memory leak --- internal/websocket/common/handler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/websocket/common/handler.go b/internal/websocket/common/handler.go index de09fe3..79e09f2 100644 --- a/internal/websocket/common/handler.go +++ b/internal/websocket/common/handler.go @@ -62,6 +62,7 @@ func (h *ConnectionHandler) getHub(channel string) *Hub { go hub.Run() h.channels[channel] = hub + logging.Errorf("Starting new hub, there are %d hubs in total", len(h.channels)) } return hub