From 0127a205bf86d9358417368c857d6b85a5041e2e Mon Sep 17 00:00:00 2001 From: Georgy Moshkin <gmoshkin@picodata.io> Date: Fri, 8 Jul 2022 17:59:19 +0300 Subject: [PATCH] chore: revise Peer::commit_index doc comment --- src/traft/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/traft/mod.rs b/src/traft/mod.rs index 8b04d489ee..107d5ceb16 100644 --- a/src/traft/mod.rs +++ b/src/traft/mod.rs @@ -154,7 +154,8 @@ pub struct Peer { pub replicaset_id: String, pub replicaset_uuid: String, - /// Index in the raft log. `0` means it's not committed yet. + /// Index of the most recent raft log entry that persisted this peer. + /// `0` means it's not committed yet. pub commit_index: u64, /// The state of this instance's activity. -- GitLab