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

Method remove

nodedb/src/control/mirror/registry.rs:83–86  ·  view source on GitHub ↗

Remove and return the link for `db_id`, if any.

(&self, db_id: DatabaseId)

Source from the content-addressed store, hash-verified

81
82 /// Remove and return the link for `db_id`, if any.
83 pub fn remove(&self, db_id: DatabaseId) -> Option<Arc<CrossClusterLink>> {
84 let mut w = self.entries.write().unwrap_or_else(|p| p.into_inner());
85 w.remove(&db_id.as_u64()).map(|e| e.link.clone())
86 }
87
88 /// Look up the link for `db_id` without removing it.
89 pub fn get(&self, db_id: DatabaseId) -> Option<Arc<CrossClusterLink>> {

Callers 15

completeMethod · 0.45
cancelMethod · 0.45
unlistenMethod · 0.45
unlisten_allMethod · 0.45
notifyMethod · 0.45
deliverMethod · 0.45
drop_topicMethod · 0.45
publishMethod · 0.45
unsubscribeMethod · 0.45
evictMethod · 0.45
get_or_parseMethod · 0.45
unregisterMethod · 0.45

Calls 3

writeMethod · 0.45
as_u64Method · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected