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

Method restore

atomic-core/src/crdt/branch.rs:214–216  ·  view source on GitHub ↗

Restores a deleted branch to alive.

(&mut self)

Source from the content-addressed store, hash-verified

212
213 /// Restores a deleted branch to alive.
214 pub fn restore(&mut self) {
215 self.state = BranchState::Alive;
216 }
217
218 /// Returns `true` if this branch has the same content hash as another.
219 #[inline]

Callers 1

Calls

no outgoing calls

Tested by 1