From 14da98c6386d763ae25e6996b80e30b325d40bdb Mon Sep 17 00:00:00 2001 From: Dan Davison Date: Tue, 3 Dec 2024 19:34:07 -0500 Subject: [PATCH] Use a single struct for options --- early-return/starter/main.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/early-return/starter/main.go b/early-return/starter/main.go index 2164fafc..df22cf5d 100644 --- a/early-return/starter/main.go +++ b/early-return/starter/main.go @@ -29,10 +29,13 @@ func main() { TaskQueue: earlyreturn.TaskQueueName, }, earlyreturn.Workflow, tx) - updateHandle, err := c.UpdateWithStartWorkflow(ctxWithTimeout, client.UpdateWorkflowOptions{ - UpdateName: earlyreturn.UpdateName, - WaitForStage: client.WorkflowUpdateStageCompleted, - }, startWorkflowOp) + updateHandle, err := c.UpdateWithStartWorkflow(ctxWithTimeout, client.UpdateWithStartWorkflowOptions{ + UpdateOptions: client.UpdateWorkflowOptions{ + UpdateName: earlyreturn.UpdateName, + WaitForStage: client.WorkflowUpdateStageCompleted, + }, + StartWorkflowOperation: startWorkflowOp, + }) if err != nil { log.Fatalln("Error issuing update-with-start:", err) }