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

Method SetStats

pkg/routing/node.go:133–138  ·  view source on GitHub ↗

for testing only

(stats *livekit.NodeStats)

Source from the content-addressed store, hash-verified

131
132// for testing only
133func (l *LocalNodeImpl) SetStats(stats *livekit.NodeStats) {
134 l.lock.Lock()
135 defer l.lock.Unlock()
136
137 l.node.Stats = utils.CloneProto(stats)
138}
139
140func (l *LocalNodeImpl) UpdateNodeStats() bool {
141 l.lock.Lock()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected