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

Method all_replicas

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

Return all replica IDs that have acked `array`.

(&self, array: &str)

Source from the content-addressed store, hash-verified

252
253 /// Return all replica IDs that have acked `array`.
254 pub fn all_replicas(&self, array: &str) -> Vec<ReplicaId> {
255 let cache = self.cache.read().unwrap_or_else(|p| p.into_inner());
256 if let Some(av) = cache.get(array) {
257 av.replicas().collect()
258 } else {
259 Vec::new()
260 }
261 }
262}
263
264// ─── Tests ────────────────────────────────────────────────────────────────────

Callers

nothing calls this directly

Calls 4

collectMethod · 0.80
replicasMethod · 0.80
readMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected