raft: clean stateMachine

This commit is contained in:
Xiang Li
2014-05-23 13:30:04 -07:00
committed by Yicheng Qin
parent 5b052e1e10
commit c223eca938
3 changed files with 116 additions and 31 deletions

View File

@@ -13,7 +13,7 @@ type Node struct {
func New(k, addr int, next Interface) *Node {
n := &Node{
sm: newStateMachine(k, addr, next),
sm: newStateMachine(k, addr),
}
return n
}