diff options
author | Frédéric Guillot <fred@miniflux.net> | 2018-11-11 15:32:48 -0800 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2018-11-11 15:32:48 -0800 |
commit | 487852f07eb191ef56967b7b7d7f01537a55eabd (patch) | |
tree | 0c5194c4371392128917a0860ac7a6b00f7784a2 /ui | |
parent | ca45765c46de3b00c3b22936c885b57c37186e3d (diff) |
Replace daemon and scheduler package with service package
Diffstat (limited to 'ui')
-rw-r--r-- | ui/handler.go | 4 | ||||
-rw-r--r-- | ui/ui.go | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ui/handler.go b/ui/handler.go index 39fe560..2bccf61 100644 --- a/ui/handler.go +++ b/ui/handler.go @@ -7,9 +7,9 @@ package ui // import "miniflux.app/ui" import ( "miniflux.app/config" "miniflux.app/reader/feed" - "miniflux.app/scheduler" "miniflux.app/storage" "miniflux.app/template" + "miniflux.app/worker" "github.com/gorilla/mux" ) @@ -19,6 +19,6 @@ type handler struct { cfg *config.Config store *storage.Storage tpl *template.Engine - pool *scheduler.WorkerPool + pool *worker.Pool feedHandler *feed.Handler } @@ -9,15 +9,15 @@ import ( "miniflux.app/config" "miniflux.app/reader/feed" - "miniflux.app/scheduler" "miniflux.app/storage" "miniflux.app/template" + "miniflux.app/worker" "github.com/gorilla/mux" ) // Serve declares all routes for the user interface. -func Serve(router *mux.Router, cfg *config.Config, store *storage.Storage, pool *scheduler.WorkerPool, feedHandler *feed.Handler) { +func Serve(router *mux.Router, cfg *config.Config, store *storage.Storage, pool *worker.Pool, feedHandler *feed.Handler) { middleware := newMiddleware(router, cfg, store) handler := &handler{router, cfg, store, template.NewEngine(cfg, router), pool, feedHandler} |