Quellcode durchsuchen

Merge pull request #3687 from ccding/patch-1

raft/doc: fix typos
Xiang Li vor 10 Jahren
Ursprung
Commit
c2e49b5622
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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)