refactor: rename RunPomodoroTimer() to RunPomodoro()
🤖
This commit is contained in:
parent
337e5b0ed3
commit
f098c1f6bf
2 changed files with 3 additions and 3 deletions
|
@ -23,8 +23,8 @@ var pomodoroResumeChannel = make(chan bool, 1)
|
|||
|
||||
var mu sync.Mutex // to synchronize access to shared state
|
||||
|
||||
// RunPomodoroTimer iterates the Pomodoro work/break sessions.
|
||||
func RunPomodoroTimer(clients map[*websocket.Conn]*models.Client) {
|
||||
// RunPomodoro iterates the Pomodoro work/break sessions.
|
||||
func RunPomodoro(clients map[*websocket.Conn]*models.Client) {
|
||||
mu.Lock()
|
||||
pomodoroOngoing = true
|
||||
pomodoroPaused = false
|
||||
|
|
|
@ -30,7 +30,7 @@ func handleClientCommands(ws *websocket.Conn) {
|
|||
switch command.Command {
|
||||
case "start":
|
||||
if !pomodoro.IsPomodoroOngoing() {
|
||||
go pomodoro.RunPomodoroTimer(Clients) // Start the timer with the list of clients
|
||||
go pomodoro.RunPomodoro(Clients) // Start the timer with the list of clients
|
||||
}
|
||||
case "stop":
|
||||
if pomodoro.IsPomodoroOngoing() {
|
||||
|
|
Loading…
Reference in a new issue