diff --git a/cmd/client/main.go b/cmd/client/main.go index 80f3c5b..9bc7f7c 100644 --- a/cmd/client/main.go +++ b/cmd/client/main.go @@ -39,7 +39,7 @@ func Start() { channel := make(chan GoTomato.ServerMessage, 2) go websocket.ProcessServerMessages(conn, channel) - frontend.Handler(conn, config, channel) + frontend.UpdateLoop(conn, config, channel) websocket.Disconnect(conn) } diff --git a/internal/frontend/main.go b/internal/frontend/main.go index c876bd5..d3a9371 100644 --- a/internal/frontend/main.go +++ b/internal/frontend/main.go @@ -7,7 +7,7 @@ import ( GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models" ) -func Handler(conn *websocket.Conn, config ChronoTomato.Config, channel <-chan GoTomato.ServerMessage) { +func UpdateLoop(conn *websocket.Conn, config ChronoTomato.Config, channel <-chan GoTomato.ServerMessage) { var message GoTomato.ServerMessage keyhandler_quit := make(chan bool, 1)