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

Method get

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

Look up the link for `db_id` without removing it.

(&self, db_id: DatabaseId)

Source from the content-addressed store, hash-verified

87
88 /// Look up the link for `db_id` without removing it.
89 pub fn get(&self, db_id: DatabaseId) -> Option<Arc<CrossClusterLink>> {
90 let r = self.entries.read().unwrap_or_else(|p| p.into_inner());
91 r.get(&db_id.as_u64()).map(|e| e.link.clone())
92 }
93
94 /// All database ids currently tracked, for iteration during server shutdown.
95 pub fn all_ids(&self) -> Vec<DatabaseId> {

Callers 15

completeMethod · 0.45
propose_surrogate_hwmFunction · 0.45
extract_from_headersFunction · 0.45
notifyMethod · 0.45
publishMethod · 0.45
subscribeMethod · 0.45
subscribe_groupMethod · 0.45
unsubscribeMethod · 0.45
topic_statsMethod · 0.45

Calls 3

readMethod · 0.45
as_u64Method · 0.45
cloneMethod · 0.45

Tested by 2

custom_key_fnFunction · 0.36
sum_by_aggregationFunction · 0.36