summaryrefslogtreecommitdiffstats
path: root/app/web_conn.go
diff options
context:
space:
mode:
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())
}
}