MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / get_rev_deps

Method get_rev_deps

atomic-core/src/pristine/txn/write/graph.rs:238–247  ·  view source on GitHub ↗
(&self, dep_id: NodeId)

Source from the content-addressed store, hash-verified

236 }
237
238 fn get_rev_deps(&self, dep_id: NodeId) -> PristineResult<Vec<NodeId>> {
239 let table = self.txn.open_multimap_table(REV_DEPS)?;
240 let mut result = Vec::new();
241 let iter = table.get(dep_id.get())?;
242 for item in iter {
243 let value = item?;
244 result.push(NodeId::new(value.value()));
245 }
246 Ok(result)
247 }
248
249 fn get_change_deps(&self, change_id: NodeId) -> PristineResult<Vec<Hash>> {
250 let table = self.txn.open_multimap_table(CHANGE_DEPS)?;

Callers 1

Calls 3

valueMethod · 0.80
getMethod · 0.65
pushMethod · 0.45

Tested by 1