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

Function next_id

atomic-core/src/pristine/txn/pristine.rs:35–37  ·  view source on GitHub ↗

Return `max_id + 1`, or error if the ID space is exhausted.

(max_id: u64)

Source from the content-addressed store, hash-verified

33
34/// Return `max_id + 1`, or error if the ID space is exhausted.
35fn next_id(max_id: u64) -> PristineResult<u64> {
36 max_id.checked_add(1).ok_or(PristineError::IdSpaceExhausted)
37}
38
39/// The pristine database handle
40///

Callers 2

openMethod · 0.70
scan_idsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected