Explorar el Código

raft/doc: fix typos

Cong Ding hace 10 años
padre
commit
f1f92f0fa3
Se han modificado 1 ficheros con 1 adiciones y 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)