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

Method remove

nodedb-cluster/src/applied_watcher/registry.rs:70–78  ·  view source on GitHub ↗

Remove the watcher for `group_id`. Wakes outstanding waiters with [`WaitOutcome::GroupGone`]. Idempotent.

(&self, group_id: u64)

Source from the content-addressed store, hash-verified

68 /// Remove the watcher for `group_id`. Wakes outstanding waiters
69 /// with [`WaitOutcome::GroupGone`]. Idempotent.
70 pub fn remove(&self, group_id: u64) {
71 let removed = {
72 let mut w = self.inner.write().unwrap_or_else(|p| p.into_inner());
73 w.remove(&group_id)
74 };
75 if let Some(w) = removed {
76 w.close();
77 }
78 }
79
80 /// Block until `group_id`'s applied watermark reaches `target`,
81 /// the timeout elapses, or the group is removed. Lazily creates

Callers 15

handle_pongMethod · 0.45
disconnectMethod · 0.45
promote_group_learnerMethod · 0.45
remove_nodeMethod · 0.45
truncateMethod · 0.45
compactMethod · 0.45
decrement_refMethod · 0.45
sweepMethod · 0.45
migration_completedMethod · 0.45
unregisterMethod · 0.45

Calls 2

closeMethod · 0.80
writeMethod · 0.45