raft: return *Node

This commit is contained in:
Blake Mizerany 2014-05-19 00:23:35 -07:00 committed by Yicheng Qin
parent 50e0db4038
commit 9545662c6b

View File

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