mirror of
https://github.com/Xevion/go-ha.git
synced 2025-12-06 01:15:10 -06:00
switch back to pointers, but this time add etl := etl when iterating over list to set correct pointer
This commit is contained in:
@@ -2,6 +2,7 @@ package gomeassistant
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"time"
|
||||
|
||||
"github.com/golang-module/carbon"
|
||||
@@ -130,7 +131,7 @@ func runSchedules(a *App) {
|
||||
sched = popSchedule(a)
|
||||
}
|
||||
|
||||
fmt.Println("Next schedule:", sched.nextRunTime)
|
||||
log.Println("Next schedule:", sched.nextRunTime)
|
||||
time.Sleep(time.Until(sched.nextRunTime))
|
||||
sched.maybeRunCallback(a)
|
||||
requeueSchedule(a, sched)
|
||||
|
||||
Reference in New Issue
Block a user