feat: rename frontend.Handler
to frontend.UpdateLoop
for clarity
🤖
This commit is contained in:
parent
0f8fde3143
commit
a03d27ae0f
2 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ func Start() {
|
||||||
|
|
||||||
channel := make(chan GoTomato.ServerMessage, 2)
|
channel := make(chan GoTomato.ServerMessage, 2)
|
||||||
go websocket.ProcessServerMessages(conn, channel)
|
go websocket.ProcessServerMessages(conn, channel)
|
||||||
frontend.Handler(conn, config, channel)
|
frontend.UpdateLoop(conn, config, channel)
|
||||||
|
|
||||||
websocket.Disconnect(conn)
|
websocket.Disconnect(conn)
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models"
|
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
|
var message GoTomato.ServerMessage
|
||||||
|
|
||||||
keyhandler_quit := make(chan bool, 1)
|
keyhandler_quit := make(chan bool, 1)
|
||||||
|
|
Loading…
Reference in a new issue