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

Method needed_hashes

atomic-remote/src/streaming/negotiation.rs:142–144  ·  view source on GitHub ↗

Returns the set of needed chunk hashes.

(&self)

Source from the content-addressed store, hash-verified

140
141 /// Returns the set of needed chunk hashes.
142 pub fn needed_hashes(&self) -> HashSet<[u8; 32]> {
143 self.needed.iter().map(|e| e.hash).collect()
144 }
145
146 /// Returns the set of needed chunk indices.
147 pub fn needed_indices(&self) -> Vec<u32> {

Callers 1

Calls 1

iterMethod · 0.45

Tested by 1