From 752a95ed65820b8b39a610f32acd176a60f7f801 Mon Sep 17 00:00:00 2001 From: BroodjeAap Date: Sun, 22 Jan 2023 21:06:44 +0000 Subject: [PATCH] init cronjobs after db init as a go routine --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 73a12ea..b06c179 100644 --- a/main.go +++ b/main.go @@ -62,9 +62,9 @@ func (web *Web) init() { } web.validateProxyURL() web.initDB() + go web.initCronJobs() web.initRouter() web.initNotifiers() - web.initCronJobs() } // startupWarning is a helper function to add a message to web.startupWarnings and print it to stdout