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

Method total_shapes

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

Total active shape subscriptions across all sessions.

(&self)

Source from the content-addressed store, hash-verified

175
176 /// Total active shape subscriptions across all sessions.
177 pub fn total_shapes(&self) -> usize {
178 let sessions =
179 crate::control::lock_utils::read_or_recover(self.sessions.read(), "shape_sessions");
180 sessions.values().map(|c| c.shapes.len()).sum()
181 }
182
183 /// Number of sessions with active shapes.
184 pub fn active_sessions(&self) -> usize {

Callers

nothing calls this directly

Calls 4

read_or_recoverFunction · 0.85
sumMethod · 0.80
readMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected