From a03d27ae0f181a83d68783941a89d5ab56e8132f Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Mon, 28 Oct 2024 09:02:18 +0100 Subject: [PATCH] feat: rename `frontend.Handler` to `frontend.UpdateLoop` for clarity MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 --- cmd/client/main.go | 2 +- internal/frontend/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)