fix: gocron DoWithJobDetails wrong job function (#7)
All checks were successful
CD / Build and push (push) Successful in 4m13s
CD / test (push) Successful in 6m55s

Co-authored-by: Timo Behrendt <t.behrendt@t00n.de>
Co-committed-by: Timo Behrendt <t.behrendt@t00n.de>
This commit was merged in pull request #7.
This commit is contained in:
2024-08-11 09:36:05 +02:00
committed by t.behrendt
parent 432974b0d0
commit b8bdcaa35e
3 changed files with 15 additions and 4 deletions

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)