From 4e5b2d9dfd9413ce084e64e048a57ad6e23356d3 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Mon, 20 Jun 2022 18:35:50 +0200 Subject: ref: Remove model dependency fom worker It was a bit weird to have that dependency in first place. --- routes/routes.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'routes') diff --git a/routes/routes.go b/routes/routes.go index 79264c5..31384a7 100644 --- a/routes/routes.go +++ b/routes/routes.go @@ -10,15 +10,15 @@ import ( func HandleRequests() { models := db.EntryModel{DB: db.DB} - worker := worker.Worker{} - - worker.StartWorker(models) + worker := worker.NewWorkder() env := &controller.Env{ Entries: models, Worker: worker, } + env.StartScheduler() + r := gin.Default() r.LoadHTMLGlob("templates/*") r.Static("/assets", "./assets") -- cgit v1.2.3