Browse Source

raft: correct comment for n.Next

Xiang Li 11 years ago
parent
commit
6e95448ad7
1 changed files with 1 additions and 1 deletions
  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 {