mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
Comments
This commit is contained in:
parent
f0ed4969a6
commit
a90a9584c9
@ -81,7 +81,7 @@ func (m *ConnMap) UpdateMetrics() {
|
||||
m.updateMetrics(len(m.connIDToConn))
|
||||
}
|
||||
|
||||
// updateMetrics is like UpdateMetrics but doesn't touch connIDToConn and hence need a lock. We use this internally
|
||||
// updateMetrics is like UpdateMetrics but doesn't touch connIDToConn and hence doesn't need to lock. We use this internally
|
||||
// when we need to update the metric and already have the lock held, as calling UpdateMetrics would deadlock.
|
||||
func (m *ConnMap) updateMetrics(numConns int) {
|
||||
if m.numConns == nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user