Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
pancsta committed Jan 18, 2024
1 parent f97bb90 commit c3feaeb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/machine/misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type Event struct {
Machine *Machine
Args A
// internal events lack a step
step *TransitionStep
step *TransitionStep
}

type Opts struct {
Expand Down Expand Up @@ -200,7 +200,7 @@ type (
indexWhen map[string][]*whenBinding
// map of (single) state names to a list of bindings
indexStateCtx map[string][]context.CancelFunc
indexEventCh map[string][]chan *Event
indexEventCh map[string][]chan *Event
)

type whenBinding struct {
Expand All @@ -225,8 +225,8 @@ type emitter struct {
// delivery of all events.
func (m *Machine) newEmitter(name string, methods *reflect.Value) *emitter {
e := &emitter{
id: name,
methods: methods,
id: name,
methods: methods,
}
// TODO emitter mutex
m.emitters = append(m.emitters, e)
Expand Down

0 comments on commit c3feaeb

Please sign in to comment.