fix: make ServerMessage channel unbuffered

- remove buffer size from channel for better memory management

🤖
This commit is contained in:
Sebastian Mark 2024-10-29 18:13:02 +01:00
parent 7459379950
commit 5f65b9aa56

View file

@ -37,7 +37,7 @@ func Start() {
conn := websocket.Connect(config.URL) conn := websocket.Connect(config.URL)
channel := make(chan GoTomato.ServerMessage, 2) channel := make(chan GoTomato.ServerMessage)
go websocket.ProcessServerMessages(conn, channel) go websocket.ProcessServerMessages(conn, channel)
frontend.UpdateLoop(conn, config, channel) frontend.UpdateLoop(conn, config, channel)