From 228862fefaa645026caa483ffe9993bf8c00b22e Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sat, 1 Jun 2019 18:18:09 -0700 Subject: Refactor config package - Parse configuration only once during startup time - Store configuration values in a global variable --- ui/handler.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ui/handler.go') 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 -- cgit v1.2.3