From 9d96d1a9422b30dd6caa42cca2a561970735f160 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sun, 21 Apr 2024 21:14:58 -0700 Subject: notify when we don't receive a thing in the last 24 hours --- main.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'main.go') 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"` -- cgit v1.2.3-70-g09d2