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

Method take_ready

nodedb-raft/src/node/core.rs:147–149  ·  view source on GitHub ↗

Take the pending `Ready` output. Caller must execute messages, persist hard state, and apply committed entries.

(&mut self)

Source from the content-addressed store, hash-verified

145 /// Take the pending `Ready` output. Caller must execute messages,
146 /// persist hard state, and apply committed entries.
147 pub fn take_ready(&mut self) -> Ready {
148 std::mem::take(&mut self.ready)
149 }
150
151 /// Advance `last_applied` after the caller has applied entries.
152 pub fn advance_applied(&mut self, applied_to: u64) {

Calls 1

takeFunction · 0.85