MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / active_sessions

Method active_sessions

nodedb/src/control/server/sync/shape/registry.rs:184–188  ·  view source on GitHub ↗

Number of sessions with active shapes.

(&self)

Source from the content-addressed store, hash-verified

182
183 /// Number of sessions with active shapes.
184 pub fn active_sessions(&self) -> usize {
185 let sessions =
186 crate::control::lock_utils::read_or_recover(self.sessions.read(), "shape_sessions");
187 sessions.len()
188 }
189
190 /// Evaluate an array op against all active shapes.
191 ///

Callers

nothing calls this directly

Calls 3

read_or_recoverFunction · 0.85
readMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected