Remove another function

This commit is contained in:
Smaug123
2022-11-12 21:37:51 +00:00
parent 7396979958
commit fe7f5427c1
2 changed files with 3 additions and 54 deletions

View File

@@ -75,7 +75,6 @@ type RequestVoteMessage =
CandidateTerm : int<Term>
CandidateId : int<ServerId>
CandidateLastLogEntry : LogEntryMetadata option
ReplyChannel : RequestVoteReply -> unit
}
override this.ToString () =
@@ -381,7 +380,9 @@ type Server<'a>
VoteGranted = true
Candidate = message.CandidateId
}
|> message.ReplyChannel
|> Reply.RequestVoteReply
|> Message.Reply
|> messageChannel message.CandidateId
| AppendEntries message ->
// This was guaranteed above.
@@ -695,7 +696,6 @@ type Server<'a>
CandidateTerm = persistentState.CurrentTerm
CandidateId = me
CandidateLastLogEntry = persistentState.GetLastLogEntry () |> Option.map snd
ReplyChannel = fun reply -> messageChannel me (RequestVoteReply reply |> Message.Reply)
}
|> Instruction.RequestVote
|> Message.Instruction