raft: introduce Node interface
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user