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

Method get_deps

atomic-core/src/pristine/txn/write/mod.rs:2057–2066  ·  view source on GitHub ↗
(&self, change_id: NodeId)

Source from the content-addressed store, hash-verified

2055 }
2056
2057 fn get_deps(&self, change_id: NodeId) -> PristineResult<Vec<NodeId>> {
2058 let table = self.txn.open_multimap_table(DEPS)?;
2059 let mut result = Vec::new();
2060 let iter = table.get(change_id.get())?;
2061 for item in iter {
2062 let value = item?;
2063 result.push(NodeId::new(value.value()));
2064 }
2065 Ok(result)
2066 }
2067
2068 fn put_dep(&mut self, change_id: NodeId, dep_id: NodeId) -> PristineResult<()> {
2069 {

Callers 1

Calls 3

valueMethod · 0.80
getMethod · 0.65
pushMethod · 0.45

Tested by 1