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

Method get_path_claims

atomic-core/src/pristine/txn/write/path_claim.rs:23–31  ·  view source on GitHub ↗
(&self, path: &str)

Source from the content-addressed store, hash-verified

21 }
22
23 fn get_path_claims(&self, path: &str) -> PristineResult<Vec<PathClaimEvent>> {
24 let table = self.txn.open_multimap_table(PATH_CLAIMS)?;
25 let mut events = Vec::new();
26 for value in table.get(path)? {
27 let value = value?;
28 events.push(decode_path_claim_event(value.value())?);
29 }
30 Ok(events)
31 }
32
33 fn iter_path_claims(&self) -> PristineResult<Vec<PathClaimEntry>> {
34 let table = self.txn.open_multimap_table(PATH_CLAIMS)?;

Calls 4

decode_path_claim_eventFunction · 0.85
valueMethod · 0.80
getMethod · 0.65
pushMethod · 0.45