summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/main.go b/main.go
index b66bac6..6ddf6b7 100644
--- a/main.go
+++ b/main.go
@@ -37,16 +37,15 @@ func main() {
}
if argv.Scheduler {
- scheduler.StartScheduler(dbConn)
+ scheduler.StartScheduler(dbConn, argv)
}
if argv.NtfyEndpoint != "" {
- ntfy := ntfy.MakeNtfyWatcher(argv.NtfyEndpoint, argv.NtfyTopics)
+ ntfy := ntfy.MakeNtfyWatcher(argv.NtfyEndpoint, argv.NtfyBackupTopics)
notifications := ntfy.Watch()
go func() {
for notification := range notifications {
- // message type is a struct, so we can marshal it to JSON
message := notification.Text
messageStruct := struct {
Id string `json:"id"`