Skip to content

Commit

Permalink
Add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
mprimi committed Aug 15, 2024
1 parent 4cd7558 commit d3eb5a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions toy-raft/raft/badger_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ func (store *BadgerStorage) idxToKey(idx uint64) []byte {
return []byte(fmt.Sprintf("%d", idx))
}

// TODO should return index so caller can check it matches expected (alternatively, pass in the expected index)
func (store *BadgerStorage) AppendEntry(entry Entry) error {
if store.GetCurrentTerm() == 0 {
assert.Unreachable(
Expand Down

0 comments on commit d3eb5a5

Please sign in to comment.