Skip to content

Commit

Permalink
Add name fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyhb committed Nov 21, 2023
1 parent 8d90d73 commit 755dabf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions step/wait_for_event.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ func WaitForEvent[T any](ctx context.Context, id string, opts WaitForEventOpts)
if opts.If != nil {
args["if"] = *opts.If
}
if opts.Name == "" {
opts.Name = id
}

op := mgr.NewOp(enums.OpcodeWaitForEvent, id, args)
if val, ok := mgr.Step(op); ok {
Expand Down

0 comments on commit 755dabf

Please sign in to comment.