mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Metrics operations shouldn't be inside goroutine (#13950)
Metrics operations are done in memory so there is no need to spawn a new goroutine
This commit is contained in:
committed by
GitHub
parent
2a5d30f8f3
commit
89f4e9d7ef
@@ -232,9 +232,7 @@ func (wc *WebConn) writePump() {
|
||||
}
|
||||
|
||||
if wc.App.Metrics() != nil {
|
||||
wc.App.Srv().Go(func() {
|
||||
wc.App.Metrics().IncrementWebSocketBroadcast(msg.EventType())
|
||||
})
|
||||
wc.App.Metrics().IncrementWebSocketBroadcast(msg.EventType())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user