raft: remove unused raftpb.LastIndex
This commit is contained in:
@ -34,7 +34,7 @@ type Ready struct {
|
||||
}
|
||||
|
||||
func isStateEqual(a, b pb.State) bool {
|
||||
return a.Term == b.Term && a.Vote == b.Vote && a.Commit == b.Commit && a.LastIndex == b.LastIndex
|
||||
return a.Term == b.Term && a.Vote == b.Vote && a.Commit == b.Commit
|
||||
}
|
||||
|
||||
func IsEmptyState(st pb.State) bool {
|
||||
|
Reference in New Issue
Block a user