aboutsummaryrefslogtreecommitdiffhomepage
path: root/ui/handler.go
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2019-06-01 18:18:09 -0700
committerGravatar fguillot <fred@miniflux.net>2019-06-02 06:30:08 -0700
commit228862fefaa645026caa483ffe9993bf8c00b22e (patch)
tree2b590dc6cda3e50928a31ce673641357805f75ce /ui/handler.go
parent04d85b3c63afcf6c9539fc8dc7a91c4e36c2e8fb (diff)
Refactor config package
- Parse configuration only once during startup time - Store configuration values in a global variable
Diffstat (limited to 'ui/handler.go')
-rw-r--r--ui/handler.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/ui/handler.go b/ui/handler.go
index 2bccf61..d4d4889 100644
--- a/ui/handler.go
+++ b/ui/handler.go
@@ -2,10 +2,9 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
-package ui // import "miniflux.app/ui"
+package ui // import "miniflux.app/ui"
import (
- "miniflux.app/config"
"miniflux.app/reader/feed"
"miniflux.app/storage"
"miniflux.app/template"
@@ -16,7 +15,6 @@ import (
type handler struct {
router *mux.Router
- cfg *config.Config
store *storage.Storage
tpl *template.Engine
pool *worker.Pool