Skip to content

Commit c75152d

Browse files
committed
Fix sample
1 parent a1797ef commit c75152d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/signal-subworkflow/subworkflow-signal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func Workflow1(ctx workflow.Context, msg string, subID string) (string, error) {
6666
InstanceID: subID,
6767
}, SubWorkflow1)
6868

69-
if err := workflow.SignalWorkflow(ctx, subID, "sub-signal", 42); err != nil {
69+
if _, err := workflow.SignalWorkflow(ctx, subID, "sub-signal", 42).Get(ctx); err != nil {
7070
return "", fmt.Errorf("could not signal sub-workflow: %w", err)
7171
}
7272

0 commit comments

Comments
 (0)