summaryrefslogtreecommitdiff
path: root/checkjobs.go
diff options
context:
space:
mode:
Diffstat (limited to 'checkjobs.go')
-rw-r--r--checkjobs.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/checkjobs.go b/checkjobs.go
index 2b4af74..c053dd5 100644
--- a/checkjobs.go
+++ b/checkjobs.go
@@ -3,6 +3,7 @@ package main
import (
"bytes"
"fmt"
+ "kch42.de/gostuff/mailremind/confhelper"
"kch42.de/gostuff/mailremind/model"
"log"
"time"
@@ -11,10 +12,7 @@ import (
var checkInterval int64
func initCheckjobs() {
- var err error
- if checkInterval, err = conf.GetInt("schedules", "checkInterval"); err != nil {
- log.Fatalf("Could not read config schedules.checkInterval: %s", err)
- }
+ checkInterval = confhelper.ConfIntOrFatal(conf, "schedules", "checkInterval")
}
func checkjobs() {