diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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"` |