From 266ff8670244da288aec937320d9eecc7996af35 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 21 Sep 2017 04:13:34 -0500 Subject: remove more global refs (#7480) --- api/api.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'api/api.go') diff --git a/api/api.go b/api/api.go index 313cbc7e1..2dca63a07 100644 --- a/api/api.go +++ b/api/api.go @@ -9,7 +9,6 @@ import ( l4g "github.com/alecthomas/log4go" "github.com/gorilla/mux" "github.com/mattermost/mattermost-server/app" - "github.com/mattermost/mattermost-server/einterfaces" "github.com/mattermost/mattermost-server/model" "github.com/mattermost/mattermost-server/utils" @@ -124,7 +123,7 @@ func InitApi(root *mux.Router) { } func HandleEtag(etag string, routeName string, w http.ResponseWriter, r *http.Request) bool { - metrics := einterfaces.GetMetricsInterface() + metrics := app.Global().Metrics if et := r.Header.Get(model.HEADER_ETAG_CLIENT); len(etag) > 0 { if et == etag { w.Header().Set(model.HEADER_ETAG_SERVER, etag) -- cgit v1.2.3-1-g7c22