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

Method legacy_record_state

atomic-core/src/pristine/span_patch_storage.rs:1502–1508  ·  view source on GitHub ↗

Read an old graph as authored ranges without trusting sender-local CRDT names or copying its content into another persisted representation.

(&self, inode: Inode)

Source from the content-addressed store, hash-verified

1500 /// Read an old graph as authored ranges without trusting sender-local CRDT
1501 /// names or copying its content into another persisted representation.
1502 pub fn legacy_record_state(&self, inode: Inode) -> Result<Option<SpanRecordState>> {
1503 let Some(base) = legacy::record_state(self, inode)? else {
1504 return Ok(None);
1505 };
1506 self.render_legacy_state(inode, base, usize::MAX)
1507 .map(|(state, _)| Some(state))
1508 }
1509
1510 /// Render the visible span tree for an inode.
1511 pub fn render(&self, inode: Inode) -> Result<Vec<u8>> {

Callers 7

index_changeFunction · 0.80
render_if_visibleMethod · 0.80
record_stateMethod · 0.80
renderMethod · 0.80
record_with_lifecycleMethod · 0.80
span_stateFunction · 0.80

Calls 2

record_stateFunction · 0.85
render_legacy_stateMethod · 0.80

Tested by

no test coverage detected