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

Method ack_vector

nodedb/src/control/array_sync/ack_registry.rs:242–245  ·  view source on GitHub ↗

Return a snapshot of the full [`AckVector`] for `array`. Returns an empty `AckVector` if no acks have been recorded yet.

(&self, array: &str)

Source from the content-addressed store, hash-verified

240 ///
241 /// Returns an empty `AckVector` if no acks have been recorded yet.
242 pub fn ack_vector(&self, array: &str) -> AckVector {
243 let cache = self.cache.read().unwrap_or_else(|p| p.into_inner());
244 cache.get(array).cloned().unwrap_or_else(AckVector::new)
245 }
246
247 /// Return all distinct array names that have at least one recorded ack.
248 pub fn known_arrays(&self) -> Vec<String> {

Callers 1

run_gcFunction · 0.80

Calls 2

readMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected