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/entry_save.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/entry_save.go') diff --git a/ui/entry_save.go b/ui/entry_save.go index 86d5b4d..43d2503 100644 --- a/ui/entry_save.go +++ b/ui/entry_save.go @@ -37,7 +37,7 @@ func (h *handler) saveEntry(w http.ResponseWriter, r *http.Request) { } go func() { - integration.SendEntry(h.cfg, entry, settings) + integration.SendEntry(entry, settings) }() json.Created(w, r, map[string]string{"message": "saved"}) -- cgit v1.2.3