Move setup of executable workers to function

- Fix startup crash if no site_info row was found
This commit is contained in:
viktorstrate
2020-09-23 14:34:26 +02:00
parent d09bb3b99e
commit 44a00c7415
4 changed files with 31 additions and 17 deletions

View File

@@ -49,6 +49,8 @@ func main() {
log.Panicf("Could not initialize periodic scanner: %s", err)
}
scanner.InitializeExecutableWorkers()
rootRouter := mux.NewRouter()
rootRouter.Use(auth.Middleware(db))