update raft/log.go, fix type (#157)

This commit is contained in:
Lin ZiHao 2020-05-04 22:12:30 +08:00 committed by GitHub
parent 1df74d600c
commit 4adae7912e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,7 @@ func (l *RaftLog) nextEnts() (ents []pb.Entry) {
return nil
}
// LastIndex return the last index of the lon entries
// LastIndex return the last index of the log entries
func (l *RaftLog) LastIndex() uint64 {
// Your Code Here (2A).
return 0