public void BecomeFollower(CurrentState state) { State?.Stop(); State = new Follower(state, _fsm, _log, _random, this, _settings, _rules, _getPeers(state)); }
public void BecomeLeader(CurrentState state) { State.Stop(); State = new Leader(state, _fsm, _getPeers, _log, this, _settings, _rules); }