Преглед изворни кода

Merge pull request #3687 from ccding/patch-1

raft/doc: fix typos
Xiang Li пре 10 година
родитељ
комит
c2e49b5622
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      raft/doc.go

+ 1 - 1
raft/doc.go

@@ -88,7 +88,7 @@ The total state machine handling loop will look something like this:
       }
       for entry := range rd.CommittedEntries {
         process(entry)
-        if entry.Type == raftpb.EntryConfChange:
+        if entry.Type == raftpb.EntryConfChange {
           var cc raftpb.ConfChange
           cc.Unmarshal(entry.Data)
           s.Node.ApplyConfChange(cc)