libraft-0.1.1.0: Raft consensus algorithm

Safe HaskellNone
LanguageHaskell2010

Raft.Candidate

Synopsis

Documentation

handleRequestVoteResponse :: forall sm v. Show v => RPCHandler Candidate sm RequestVoteResponse v Source #

Candidates should not respond to RequestVoteResponse messages.

handleClientRequest :: ClientReqHandler Candidate sm v Source #

When candidates handle a client request, they respond with NoLeader, as the very reason they are candidate is because there is no leader. This is done instead of simply not responding such that the client can know that the node is live but that there is an election taking place.