Update src/io/rsm/raft.hpp

Co-authored-by: János Benjamin Antal <antaljanosbenjamin@users.noreply.github.com>
This commit is contained in:
Tyler Neely 2022-08-16 17:12:13 +02:00 committed by GitHub
parent 47186cab18
commit 2e9cf8f37d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -354,7 +354,7 @@ class Raft {
return 0;
}
auto &[term, data] = state_.log.at(index - 1);
const auto &[term, data] = state_.log.at(index - 1);
return term;
}