Пример #1
0
func (this *Paxos) doSaveProposer(state *thispb.ProposerState) {
	state.ProposalBallot = proto.Int64(this.proposalBallot)
}
Пример #2
0
func (this *Paxos) doRestoreProposer(state *thispb.ProposerState) {
	this.proposalBallot = state.GetProposalBallot()
}