mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #3689 from ccding/patch-1
raft/doc: fix misuse of `for' loop in docs
This commit is contained in:
commit
df34d67e98
@ -86,7 +86,7 @@ The total state machine handling loop will look something like this:
|
|||||||
if !raft.IsEmptySnap(rd.Snapshot) {
|
if !raft.IsEmptySnap(rd.Snapshot) {
|
||||||
processSnapshot(rd.Snapshot)
|
processSnapshot(rd.Snapshot)
|
||||||
}
|
}
|
||||||
for entry := range rd.CommittedEntries {
|
for _, entry := range rd.CommittedEntries {
|
||||||
process(entry)
|
process(entry)
|
||||||
if entry.Type == raftpb.EntryConfChange {
|
if entry.Type == raftpb.EntryConfChange {
|
||||||
var cc raftpb.ConfChange
|
var cc raftpb.ConfChange
|
||||||
|
Loading…
x
Reference in New Issue
Block a user