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

Method persist_hard_state

nodedb-raft/src/node/internal.rs:366–368  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

364 }
365
366 pub(super) fn persist_hard_state(&mut self) {
367 self.ready.hard_state = Some(self.hard_state.clone());
368 }
369
370 pub(super) fn reset_election_timeout(&mut self) {
371 let mut rng = rand::rng();

Callers 3

start_electionMethod · 0.80
become_followerMethod · 0.80
handle_request_voteMethod · 0.80

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected