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

Method get

nodedb/src/control/array_sync/outbound/subscriber_state.rs:145–149  ·  view source on GitHub ↗

Get the current cursor for `(session_id, array_name)`, if any.

(&self, session_id: &str, array_name: &str)

Source from the content-addressed store, hash-verified

143
144 /// Get the current cursor for `(session_id, array_name)`, if any.
145 pub fn get(&self, session_id: &str, array_name: &str) -> Option<ArraySubscriberState> {
146 let map = self.inner.read().unwrap_or_else(|p| p.into_inner());
147 map.get(&(session_id.to_string(), array_name.to_string()))
148 .cloned()
149 }
150}
151
152// ─── Backing store ────────────────────────────────────────────────────────────

Callers 5

enqueueMethod · 0.45
loadMethod · 0.45
deliver_to_sessionMethod · 0.45

Calls 2

to_stringMethod · 0.80
readMethod · 0.45

Tested by 2