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/web_conn.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'app/web_conn.go') diff --git a/app/web_conn.go b/app/web_conn.go index 556612e79..069d2c8f4 100644 --- a/app/web_conn.go +++ b/app/web_conn.go @@ -8,7 +8,6 @@ import ( "sync/atomic" "time" - "github.com/mattermost/mattermost-server/einterfaces" "github.com/mattermost/mattermost-server/model" "github.com/mattermost/mattermost-server/utils" @@ -191,8 +190,8 @@ func (c *WebConn) WritePump() { return } - if einterfaces.GetMetricsInterface() != nil { - go einterfaces.GetMetricsInterface().IncrementWebSocketBroadcast(msg.EventType()) + if c.App.Metrics != nil { + go c.App.Metrics.IncrementWebSocketBroadcast(msg.EventType()) } } -- cgit v1.2.3-1-g7c22