Compare commits

..

2 commits

Author SHA1 Message Date
5f65b9aa56 fix: make ServerMessage channel unbuffered
- remove buffer size from channel for better memory management

🤖
2024-10-29 18:13:02 +01:00
7459379950 doc: remove outdated TODO comments
🤖
2024-10-29 18:11:06 +01:00
2 changed files with 1 additions and 5 deletions

View file

@ -1,9 +1,5 @@
package main package main
//// TODO
// - add progress bar (https://github.com/charmbracelet/bubbles?tab=readme-ov-file#progress)
// - add controls
import ( import (
"git.smsvc.net/pomodoro/ChronoTomato/cmd/client" "git.smsvc.net/pomodoro/ChronoTomato/cmd/client"
) )

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)