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

Function handle_unsubscribe

nodedb/src/control/server/sync/shape/handler.rs:135–138  ·  view source on GitHub ↗

Handle a ShapeUnsubscribe message.

(session_id: &str, msg: &ShapeUnsubscribeMsg, registry: &ShapeRegistry)

Source from the content-addressed store, hash-verified

133
134/// Handle a ShapeUnsubscribe message.
135pub fn handle_unsubscribe(session_id: &str, msg: &ShapeUnsubscribeMsg, registry: &ShapeRegistry) {
136 registry.unsubscribe(session_id, &msg.shape_id);
137 debug!(session = session_id, shape_id = %msg.shape_id, "shape unsubscribed");
138}
139
140/// Evaluate a mutation against all shapes and generate ShapeDelta frames.
141///

Callers 2

process_frameMethod · 0.85
unsubscribe_removesFunction · 0.85

Calls 1

unsubscribeMethod · 0.45

Tested by 1

unsubscribe_removesFunction · 0.68