fix: gocron DoWithJobDetails wrong job function #7

Merged
t.behrendt merged 2 commits from fix-gocron-DoWithJobDetails-wrong-job-function into main 2024-08-11 09:36:06 +02:00
Showing only changes of commit 3d70154146 - Show all commits

View File

@@ -54,7 +54,7 @@ func main() {
s := gocron.NewScheduler(time.UTC)
s.SingletonMode()
job, err := s.CronWithSeconds(configClient.CheckInterval).DoWithJobDetails(func(in string, job gocron.Job) {
job, err := s.CronWithSeconds(configClient.CheckInterval).DoWithJobDetails(func(job gocron.Job) {
numberChanged, err := changeDetector.DetectAndApplyChanges()
if err != nil {
panic(err)