mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-02 23:15:36 +02:00
protofsm: use pointer to GoroutineManager
This commit is contained in:
@@ -145,7 +145,7 @@ type StateMachine[Event any, Env Environment] struct {
|
|||||||
// query the internal state machine state.
|
// query the internal state machine state.
|
||||||
stateQuery chan stateQuery[Event, Env]
|
stateQuery chan stateQuery[Event, Env]
|
||||||
|
|
||||||
wg fn.GoroutineManager
|
wg *fn.GoroutineManager
|
||||||
quit chan struct{}
|
quit chan struct{}
|
||||||
|
|
||||||
startOnce sync.Once
|
startOnce sync.Once
|
||||||
@@ -206,7 +206,7 @@ func NewStateMachine[Event any, Env Environment](
|
|||||||
),
|
),
|
||||||
events: make(chan Event, 1),
|
events: make(chan Event, 1),
|
||||||
stateQuery: make(chan stateQuery[Event, Env]),
|
stateQuery: make(chan stateQuery[Event, Env]),
|
||||||
wg: *fn.NewGoroutineManager(),
|
wg: fn.NewGoroutineManager(),
|
||||||
newStateEvents: fn.NewEventDistributor[State[Event, Env]](),
|
newStateEvents: fn.NewEventDistributor[State[Event, Env]](),
|
||||||
quit: make(chan struct{}),
|
quit: make(chan struct{}),
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user