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

Method next

nodedb-cluster/src/rpc_codec/peer_seq.rs:56–58  ·  view source on GitHub ↗

Reserve and return the next outbound sequence number. Starts at 1 and is strictly increasing across all targets for this sender.

(&self)

Source from the content-addressed store, hash-verified

54 /// Reserve and return the next outbound sequence number. Starts at 1
55 /// and is strictly increasing across all targets for this sender.
56 pub fn next(&self) -> u64 {
57 self.counter.fetch_add(1, Ordering::Relaxed) + 1
58 }
59
60 /// Current counter value (0 if no frames have been sent). Test-only.
61 #[cfg(test)]

Callers 11

drain_backupFunction · 0.45
parse_archive_keyFunction · 0.45
quote_identFunction · 0.45
connect_tlsMethod · 0.45
show_parameterMethod · 0.45
handle_streamFunction · 0.45
wrap_innerMethod · 0.45
fan_outFunction · 0.45
fan_out_partitionedFunction · 0.45
wrapFunction · 0.45

Calls

no outgoing calls

Tested by 2

drain_backupFunction · 0.36