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

Function own_change_ids

atomic-repository/src/repository/remote_cache.rs:399–407  ·  view source on GitHub ↗
(
    txn: &atomic_core::pristine::ReadTxn,
    view: &atomic_core::pristine::ViewState,
)

Source from the content-addressed store, hash-verified

397}
398
399fn own_change_ids(
400 txn: &atomic_core::pristine::ReadTxn,
401 view: &atomic_core::pristine::ViewState,
402) -> Result<Vec<u64>, RepositoryError> {
403 txn.iter_changes(view, 0)
404 .map_err(db)?
405 .map(|entry| entry.map(|(_, id, _)| id.get()).map_err(db))
406 .collect()
407}
408
409/// The digest of `state`'s effective perspective: the view and each view in
410/// [`sandbox_view_chain`], by id, scope, own Merkle state and change count.

Callers 1

Calls 3

getMethod · 0.65
collectMethod · 0.45
iter_changesMethod · 0.45

Tested by

no test coverage detected