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

Method is_empty

nodedb-raft/src/node/core.rs:41–47  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

39
40impl Ready {
41 pub fn is_empty(&self) -> bool {
42 self.hard_state.is_none()
43 && self.messages.is_empty()
44 && self.vote_requests.is_empty()
45 && self.committed_entries.is_empty()
46 && self.snapshots_needed.is_empty()
47 }
48}
49
50/// A single Raft group's state machine.

Callers 3

append_entriesMethod · 0.45
start_electionMethod · 0.45
three_node_replicationFunction · 0.45

Calls

no outgoing calls

Tested by 1

three_node_replicationFunction · 0.36