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

Method tick

nodedb-cluster/src/multi_raft/core.rs:165–177  ·  view source on GitHub ↗

Tick all Raft groups. Returns aggregated ready output.

(&mut self)

Source from the content-addressed store, hash-verified

163
164 /// Tick all Raft groups. Returns aggregated ready output.
165 pub fn tick(&mut self) -> MultiRaftReady {
166 let mut ready = MultiRaftReady::default();
167
168 for (&group_id, node) in &mut self.groups {
169 node.tick();
170 let r = node.take_ready();
171 if !r.is_empty() {
172 ready.groups.push((group_id, r));
173 }
174 }
175
176 ready
177 }
178
179 pub fn routing(&self) -> &RoutingTable {
180 &self.routing

Callers 7

runMethod · 0.45
do_tickMethod · 0.45
runMethod · 0.45
runMethod · 0.45
single_node_multi_raftFunction · 0.45

Calls 3

take_readyMethod · 0.80
is_emptyMethod · 0.45
pushMethod · 0.45

Tested by 2

single_node_multi_raftFunction · 0.36