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

Method with_election_timeout

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

Configure election timeout range.

(mut self, min: Duration, max: Duration)

Source from the content-addressed store, hash-verified

88
89 /// Configure election timeout range.
90 pub fn with_election_timeout(mut self, min: Duration, max: Duration) -> Self {
91 self.election_timeout_min = min;
92 self.election_timeout_max = max;
93 self
94 }
95
96 /// Configure heartbeat interval.
97 pub fn with_heartbeat_interval(mut self, interval: Duration) -> Self {

Callers 4

bootstrapFunction · 0.80
restartFunction · 0.80
apply_join_responseFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected