Skip to content

Commit

Permalink
Merge branch 'hashicorp:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
otoolep authored Oct 15, 2024
2 parents 52cc784 + 2b0032e commit 0ca334c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api.go
Original file line number Diff line number Diff line change
Expand Up @@ -1208,6 +1208,11 @@ func (r *Raft) Stats() map[string]string {
return s
}

// CurrentTerm returns the current term.
func (r *Raft) CurrentTerm() uint64 {
return r.getCurrentTerm()
}

// LastIndex returns the last index in stable storage,
// either from the last log or from the last snapshot.
func (r *Raft) LastIndex() uint64 {
Expand Down

0 comments on commit 0ca334c

Please sign in to comment.