MCPcopy Create free account
hub / github.com/livekit/livekit / UpdateNodeStats

Method UpdateNodeStats

pkg/routing/node.go:140–151  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

138}
139
140func (l *LocalNodeImpl) UpdateNodeStats() bool {
141 l.lock.Lock()
142 defer l.lock.Unlock()
143
144 stats, err := l.nodeStats.UpdateAndGetNodeStats()
145 if err != nil {
146 return false
147 }
148
149 l.node.Stats = stats
150 return true
151}
152
153func (l *LocalNodeImpl) SecondsSinceNodeStatsUpdate() float64 {
154 l.lock.RLock()

Callers

nothing calls this directly

Calls 1

UpdateAndGetNodeStatsMethod · 0.80

Tested by

no test coverage detected