mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
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