mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 19:39:19 +00:00
Move setup of executable workers to function
- Fix startup crash if no site_info row was found
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user