feat: rename frontend.Handler to frontend.UpdateLoop for clarity

🤖
This commit is contained in:
Sebastian Mark 2024-10-28 09:02:18 +01:00
parent 0f8fde3143
commit a03d27ae0f
2 changed files with 2 additions and 2 deletions

View file

@ -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)
}

View file

@ -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)