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

Method get_rev_deps

atomic-core/src/pristine/txn/read.rs:425–434  ·  view source on GitHub ↗
(&self, dep_id: NodeId)

Source from the content-addressed store, hash-verified

423 }
424
425 fn get_rev_deps(&self, dep_id: NodeId) -> PristineResult<Vec<NodeId>> {
426 let table = self.txn.open_multimap_table(REV_DEPS)?;
427 let mut result = Vec::new();
428 let iter = table.get(dep_id.get())?;
429 for item in iter {
430 let value = item?;
431 result.push(NodeId::new(value.value()));
432 }
433 Ok(result)
434 }
435
436 fn get_change_deps(&self, change_id: NodeId) -> PristineResult<Vec<Hash>> {
437 let table = self.txn.open_multimap_table(CHANGE_DEPS)?;

Callers

nothing calls this directly

Calls 3

valueMethod · 0.80
getMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected