Skip to content

Commit

Permalink
protofsm: use pointer to GoroutineManager
Browse files Browse the repository at this point in the history
  • Loading branch information
ellemouton committed Dec 12, 2024
1 parent 263520a commit 779c61d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protofsm/state_machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ type StateMachine[Event any, Env Environment] struct {
// query the internal state machine state.
stateQuery chan stateQuery[Event, Env]

wg fn.GoroutineManager
wg *fn.GoroutineManager
quit chan struct{}

startOnce sync.Once
Expand Down Expand Up @@ -206,7 +206,7 @@ func NewStateMachine[Event any, Env Environment](
),
events: make(chan Event, 1),
stateQuery: make(chan stateQuery[Event, Env]),
wg: *fn.NewGoroutineManager(),
wg: fn.NewGoroutineManager(),
newStateEvents: fn.NewEventDistributor[State[Event, Env]](),
quit: make(chan struct{}),
}
Expand Down

0 comments on commit 779c61d

Please sign in to comment.