From ac74066f0e4f3d62f2d4645c3fa34b88c13958d1 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 19 Sep 2017 18:31:35 -0500 Subject: remove einterface gets (#7455) --- app/analytics.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'app/analytics.go') diff --git a/app/analytics.go b/app/analytics.go index 562569fa2..70c049350 100644 --- a/app/analytics.go +++ b/app/analytics.go @@ -5,7 +5,6 @@ package app import ( l4g "github.com/alecthomas/log4go" - "github.com/mattermost/mattermost-server/einterfaces" "github.com/mattermost/mattermost-server/model" "github.com/mattermost/mattermost-server/store" "github.com/mattermost/mattermost-server/utils" @@ -98,8 +97,8 @@ func (a *App) GetAnalytics(name string, teamId string) (model.AnalyticsRows, *mo } // If in HA mode then aggregrate all the stats - if einterfaces.GetClusterInterface() != nil && *utils.Cfg.ClusterSettings.Enable { - stats, err := einterfaces.GetClusterInterface().GetClusterStats() + if a.Cluster != nil && *utils.Cfg.ClusterSettings.Enable { + stats, err := a.Cluster.GetClusterStats() if err != nil { return nil, err } -- cgit v1.2.3-1-g7c22