Пример #1
0
 public void BecomeFollower(CurrentState state)
 {
     State?.Stop();
     State = new Follower(state, _fsm, _log, _random, this, _settings, _rules, _getPeers(state));
 }
Пример #2
0
 public void BecomeLeader(CurrentState state)
 {
     State.Stop();
     State = new Leader(state, _fsm, _getPeers, _log, this, _settings, _rules);
 }