mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: return *Node
This commit is contained in:
parent
50e0db4038
commit
9545662c6b
@ -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),
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user