Explorar o código

raft: correct comment for n.Next

Xiang Li %!s(int64=12) %!d(string=hai) anos
pai
achega
6e95448ad7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      raft/node.go

+ 1 - 1
raft/node.go

@@ -80,7 +80,7 @@ func (n *Node) Step(m Message) {
 	}
 	}
 }
 }
 
 
-// Next applies all available committed commands.
+// Next returns all the appliable entries
 func (n *Node) Next() []Entry {
 func (n *Node) Next() []Entry {
 	ents := n.sm.nextEnts()
 	ents := n.sm.nextEnts()
 	for i := range ents {
 	for i := range ents {