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

Method SetState

pkg/routing/node.go:125–130  ·  view source on GitHub ↗
(state livekit.NodeState)

Source from the content-addressed store, hash-verified

123}
124
125func (l *LocalNodeImpl) SetState(state livekit.NodeState) {
126 l.lock.Lock()
127 defer l.lock.Unlock()
128
129 l.node.State = state
130}
131
132// for testing only
133func (l *LocalNodeImpl) SetStats(stats *livekit.NodeStats) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected