Browse Source

raft/doc: fix typos

Cong Ding 10 years ago
parent
commit
f1f92f0fa3
1 changed files with 1 additions and 1 deletions
  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 {
       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
           cc.Unmarshal(entry.Data)
           cc.Unmarshal(entry.Data)
           s.Node.ApplyConfChange(cc)
           s.Node.ApplyConfChange(cc)