예제 #1
0
 public Peer(string id, RequestVoteDelegate requestVote, AppendEntriesDelegate appendEntries)
 {
     this.requestVote = requestVote;
     Id = id;
     this.appendEntries = appendEntries;
     CommitIndex        = 1;
 }
예제 #2
0
 public Peer(string id, RequestVoteDelegate requestVote, AppendEntriesDelegate appendEntries)
 {
     this.requestVote = requestVote;
     Id = id;
     this.appendEntries = appendEntries;
     CommitIndex = 1;
 }