Explorar o código

raft/doc: fix typos

Cong Ding %!s(int64=10) %!d(string=hai) anos
pai
achega
f1f92f0fa3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)