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

Method replace_token

atomic-core/src/record/workflow/crdt/builder/leaf.rs:89–92  ·  view source on GitHub ↗

Replaces a token's content (preserving its ID for blame).

(&mut self, _leaf_id: LeafId, new_content: &[u8])

Source from the content-addressed store, hash-verified

87
88 /// Replaces a token's content (preserving its ID for blame).
89 pub fn replace_token(&mut self, _leaf_id: LeafId, new_content: &[u8]) {
90 let _ = self.append_content(new_content);
91 self.stats.tokens_replaced += 1;
92 }
93}

Callers 1

Calls 1

append_contentMethod · 0.45

Tested by 1