MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / next

Method next

nodedb/src/event/crdt_sync/packager.rs:41–46  ·  view source on GitHub ↗
(&self, collection: &str)

Source from the content-addressed store, hash-verified

39 }
40
41 fn next(&self, collection: &str) -> u64 {
42 let mut seqs = self.sequences.lock().unwrap_or_else(|p| p.into_inner());
43 let seq = seqs.entry(collection.to_string()).or_insert(0);
44 *seq += 1;
45 *seq
46 }
47}
48
49/// Origin node's peer ID for CRDT attribution.

Callers 15

phrase_searchMethod · 0.45
index_lookupMethod · 0.45
parseFunction · 0.45
parse_whereFunction · 0.45
rebuild_from_storeFunction · 0.45
parse_versioned_edge_keyFunction · 0.45
parse_measurement_tagsFunction · 0.45

Calls 3

lockMethod · 0.80
entryMethod · 0.80
to_stringMethod · 0.80