fix: make ServerMessage channel unbuffered
- remove buffer size from channel for better memory management
🤖
This commit is contained in:
parent
7459379950
commit
5f65b9aa56
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue