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

Method alloc_trunk_id

atomic-core/src/record/workflow/crdt/builder/mod.rs:300–304  ·  view source on GitHub ↗

Allocates a new trunk ID.

(&mut self)

Source from the content-addressed store, hash-verified

298
299 /// Allocates a new trunk ID.
300 pub(crate) fn alloc_trunk_id(&mut self) -> TrunkId {
301 let id = TrunkId::new(self.change_id, self.next_trunk_idx);
302 self.next_trunk_idx += 1;
303 id
304 }
305
306 /// Allocates a new branch ID.
307 pub(crate) fn alloc_branch_id(&mut self) -> BranchId {

Callers 1

add_fileMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected