@@ -122,7 +122,7 @@ func (b *ballotProtocol) prepareVoted(m *Message) {
122
122
//fmt.Println(b.id, "see", m.NodeID, "has voted prepare", m.SlotIndex, m.Counter, string(m.Value))
123
123
124
124
b .updateBallotCounter (m .NodeID , m .Counter )
125
- ballot := b .ballots .FindOrCreate (m .SlotIndex , m .Counter , m .Value , b .quorumSlices )
125
+ ballot := b .ballots .findOrCreate (m .SlotIndex , m .Counter , m .Value , b .quorumSlices )
126
126
ballot .prepare .votedBy (m .NodeID )
127
127
128
128
if ! ballot .prepare .accepted && ballot .prepare .votes .reachedQuorumThreshold (b .quorumSlices ) {
@@ -133,7 +133,7 @@ func (b *ballotProtocol) prepareVoted(m *Message) {
133
133
func (b * ballotProtocol ) prepareAccepted (m * Message ) {
134
134
//fmt.Println(b.id, "see", m.NodeID, "has accepted prepare", m.SlotIndex, m.Counter, string(m.Value))
135
135
b .updateBallotCounter (m .NodeID , m .Counter )
136
- ballot := b .ballots .FindOrCreate (m .SlotIndex , m .Counter , m .Value , b .quorumSlices )
136
+ ballot := b .ballots .findOrCreate (m .SlotIndex , m .Counter , m .Value , b .quorumSlices )
137
137
ballot .prepare .acceptedBy (m .NodeID )
138
138
139
139
if ! ballot .prepare .accepted && ballot .prepare .accepts .reachedBlockingThreshold (b .quorumSlices ) {
@@ -148,7 +148,7 @@ func (b *ballotProtocol) prepareAccepted(m *Message) {
148
148
func (b * ballotProtocol ) commitVoted (m * Message ) {
149
149
//fmt.Println(b.id, "see", m.NodeID, "has voted commit", m.SlotIndex, m.Counter, string(m.Value))
150
150
b .updateBallotCounter (m .NodeID , m .Counter )
151
- ballot := b .ballots .FindOrCreate (m .SlotIndex , m .Counter , m .Value , b .quorumSlices )
151
+ ballot := b .ballots .findOrCreate (m .SlotIndex , m .Counter , m .Value , b .quorumSlices )
152
152
ballot .commit .votedBy (m .NodeID )
153
153
154
154
if ! ballot .commit .accepted && ballot .commit .votes .reachedQuorumThreshold (b .quorumSlices ) {
@@ -159,7 +159,7 @@ func (b *ballotProtocol) commitVoted(m *Message) {
159
159
func (b * ballotProtocol ) commitAccepted (m * Message ) {
160
160
//fmt.Println(b.id, "see", m.NodeID, "has accepted commit", m.SlotIndex, m.Counter, string(m.Value))
161
161
b .updateBallotCounter (m .NodeID , m .Counter )
162
- ballot := b .ballots .FindOrCreate (m .SlotIndex , m .Counter , m .Value , b .quorumSlices )
162
+ ballot := b .ballots .findOrCreate (m .SlotIndex , m .Counter , m .Value , b .quorumSlices )
163
163
ballot .commit .acceptedBy (m .NodeID )
164
164
165
165
if ! ballot .commit .accepted && ballot .commit .accepts .reachedBlockingThreshold (b .quorumSlices ) {
@@ -172,7 +172,7 @@ func (b *ballotProtocol) commitAccepted(m *Message) {
172
172
}
173
173
174
174
func (b * ballotProtocol ) votePrepare () {
175
- ballot := b .ballots .FindOrCreate (
175
+ ballot := b .ballots .findOrCreate (
176
176
b .currentBallot .slotIndex ,
177
177
b .currentBallot .counter ,
178
178
b .currentBallot .value ,
0 commit comments