diff options
Diffstat (limited to 'api/api.go')
-rw-r--r-- | api/api.go | 3 |
1 files changed, 1 insertions, 2 deletions
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) |