fix: move package variable to frontend.Handler
This commit is contained in:
parent
e8b463c59c
commit
e0000382e9
1 changed files with 2 additions and 2 deletions
|
@ -7,9 +7,9 @@ import (
|
||||||
GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models"
|
GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
var message GoTomato.ServerMessage
|
|
||||||
|
|
||||||
func Handler(conn *websocket.Conn, config ChronoTomato.Config, channel <-chan GoTomato.ServerMessage) {
|
func Handler(conn *websocket.Conn, config ChronoTomato.Config, channel <-chan GoTomato.ServerMessage) {
|
||||||
|
var message GoTomato.ServerMessage
|
||||||
|
|
||||||
keyhandler_quit := make(chan bool, 1)
|
keyhandler_quit := make(chan bool, 1)
|
||||||
go keyhandler(conn, config, &message, keyhandler_quit)
|
go keyhandler(conn, config, &message, keyhandler_quit)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue