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

Method epochs_applied

nodedb-cluster/tests/common/calvin_test_node.rs:121–128  ·  view source on GitHub ↗

The number of epochs applied on this node.

(&self)

Source from the content-addressed store, hash-verified

119
120 /// The number of epochs applied on this node.
121 pub fn epochs_applied(&self) -> u64 {
122 self.state_machine
123 .lock()
124 .unwrap_or_else(|p| p.into_inner())
125 .metrics
126 .epochs_applied
127 .load(std::sync::atomic::Ordering::Relaxed)
128 }
129
130 /// Register a per-vshard output sender so the state machine can
131 /// fan out sequenced transactions to the receiving test code.

Callers

nothing calls this directly

Calls 2

lockMethod · 0.80
loadMethod · 0.45

Tested by

no test coverage detected