Configure election timeout range.
(mut self, min: Duration, max: Duration)
| 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 { |
no outgoing calls
no test coverage detected