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

Method get_state

atomic-remote/src/sync.rs:168–170  ·  view source on GitHub ↗

Get the Merkle state at a given sequence number.

(&self, sequence: u64)

Source from the content-addressed store, hash-verified

166
167 /// Get the Merkle state at a given sequence number.
168 pub fn get_state(&self, sequence: u64) -> Option<&str> {
169 self.entries.get(&sequence).map(|n| n.state.as_str())
170 }
171
172 /// Get the highest cached sequence number.
173 pub fn last_sequence(&self) -> Option<u64> {

Callers 5

run_asyncMethod · 0.45
run_asyncMethod · 0.45
run_asyncMethod · 0.45
dichotomy_changelistMethod · 0.45
compute_pull_deltaMethod · 0.45

Calls 2

getMethod · 0.65
as_strMethod · 0.45

Tested by

no test coverage detected