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

Method shapes_for_session

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

Get all shape IDs for a session.

(&self, session_id: &str)

Source from the content-addressed store, hash-verified

100
101 /// Get all shape IDs for a session.
102 pub fn shapes_for_session(&self, session_id: &str) -> Vec<ShapeId> {
103 let sessions =
104 crate::control::lock_utils::read_or_recover(self.sessions.read(), "shape_sessions");
105 sessions
106 .get(session_id)
107 .map(|c| c.shapes.keys().cloned().collect())
108 .unwrap_or_default()
109 }
110
111 /// Evaluate a mutation against all active shapes.
112 ///

Callers

nothing calls this directly

Calls 4

read_or_recoverFunction · 0.85
collectMethod · 0.80
readMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected