Add RAFT stuff

This commit is contained in:
Piv
2020-02-21 21:08:50 +10:30
parent 18a5a33b5f
commit e13551f798
17 changed files with 1156 additions and 0 deletions

8
MyRaft/voter.py Normal file
View File

@@ -0,0 +1,8 @@
from MyRaft.state import State
from MyRaft.node import RaftNode
class Voter(State):
def __init__(self, context: RaftNode):
State.__init__(self, context)