Skip to content

Commit

Permalink
fix: fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
panlei-coder committed Jun 4, 2024
1 parent e38513c commit 3f8ae41
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/praft/praft.cc
Original file line number Diff line number Diff line change
Expand Up @@ -246,18 +246,18 @@ uint64_t PRaft::GetTerm(uint64_t log_index) {
if (!node_) {
ERROR("Node is not initialized");
return 0;
} else {
return node_->get_term(log_index);
}

return node_->get_term(log_index);
}

uint64_t PRaft::GetLastLogIndex(bool is_flush) {
if (!node_) {
ERROR("Node is not initialized");
return 0;
} else {
return node_->get_last_log_index(is_flush);
}

return node_->get_last_log_index(is_flush);
}

void PRaft::SendNodeRequest(PClient* client) {
Expand Down

0 comments on commit 3f8ae41

Please sign in to comment.