From 5f65b9aa563ef3e4a6e2befa9a219d910baaacda Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Tue, 29 Oct 2024 18:13:02 +0100 Subject: [PATCH] fix: make ServerMessage channel unbuffered MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - remove buffer size from channel for better memory management 🤖 --- cmd/client/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/client/main.go b/cmd/client/main.go index 9bc7f7c..6d65d5e 100644 --- a/cmd/client/main.go +++ b/cmd/client/main.go @@ -37,7 +37,7 @@ func Start() { conn := websocket.Connect(config.URL) - channel := make(chan GoTomato.ServerMessage, 2) + channel := make(chan GoTomato.ServerMessage) go websocket.ProcessServerMessages(conn, channel) frontend.UpdateLoop(conn, config, channel)