func (this *Election) doRestoreElection(state *thispb.ElectionState) { atomic.StoreInt64(&this.currentRound, state.GetCurrentRound()) this.currentWinner = state.GetCurrentWinner() }