fix: move package variable to frontend.Handler

This commit is contained in:
Sebastian Mark 2024-10-27 21:47:05 +01:00
parent e8b463c59c
commit e0000382e9

View file

@ -7,9 +7,9 @@ import (
GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models"
)
func Handler(conn *websocket.Conn, config ChronoTomato.Config, channel <-chan GoTomato.ServerMessage) {
var message GoTomato.ServerMessage
func Handler(conn *websocket.Conn, config ChronoTomato.Config, channel <-chan GoTomato.ServerMessage) {
keyhandler_quit := make(chan bool, 1)
go keyhandler(conn, config, &message, keyhandler_quit)