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

Method advance

nodedb-cluster/src/distributed_graph/coordinator.rs:83–93  ·  view source on GitHub ↗

Advance to next superstep. Returns `true` if should continue.

(&mut self)

Source from the content-addressed store, hash-verified

81
82 /// Advance to next superstep. Returns `true` if should continue.
83 pub fn advance(&mut self) -> bool {
84 let delta = self.global_delta();
85 self.iteration += 1;
86 self.acks.clear();
87
88 if delta < self.tolerance || self.iteration >= self.max_iterations {
89 self.completed = true;
90 return false;
91 }
92 true
93 }
94
95 pub fn barrier_message(&self) -> SuperstepBarrier {
96 SuperstepBarrier {

Callers 1

read_arena_residentFunction · 0.45

Calls 2

global_deltaMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected