summaryrefslogtreecommitdiffstats
path: root/app/web_conn.go
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2017-09-19 18:31:35 -0500
committerGitHub <noreply@github.com>2017-09-19 18:31:35 -0500
commitac74066f0e4f3d62f2d4645c3fa34b88c13958d1 (patch)
tree9e1cb80eae1b4a2e9dcc2272744c4a9db1b4b804 /app/web_conn.go
parent7e4ff6adcccc4cc5a8fb8cfa853417ec52bf78f4 (diff)
downloadchat-ac74066f0e4f3d62f2d4645c3fa34b88c13958d1.tar.gz
chat-ac74066f0e4f3d62f2d4645c3fa34b88c13958d1.tar.bz2
chat-ac74066f0e4f3d62f2d4645c3fa34b88c13958d1.zip
remove einterface gets (#7455)
Diffstat (limited to 'app/web_conn.go')
-rw-r--r--app/web_conn.go5
1 files changed, 2 insertions, 3 deletions
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())
}
}