raft: introduce Node interface

This commit is contained in:
Jonathan Boulle
2014-09-17 12:23:44 -07:00
parent ba851b2eca
commit b66a40495d
7 changed files with 62 additions and 45 deletions

View File

@ -10,7 +10,7 @@ func saveStateToDisk(st pb.HardState) {}
func saveToDisk(ents []pb.Entry) {}
func Example_Node() {
n := Start(0, nil, 0, 0)
n := StartNode(0, nil, 0, 0)
// stuff to n happens in other goroutines