Skip to content

Commit

Permalink
Use a single struct for options
Browse files Browse the repository at this point in the history
  • Loading branch information
dandavison committed Dec 6, 2024
1 parent 704e317 commit 14da98c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions early-return/starter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{

Check failure on line 32 in early-return/starter/main.go

View workflow job for this annotation

GitHub Actions / build-and-test

c.UpdateWithStartWorkflow undefined (type client.Client has no field or method UpdateWithStartWorkflow)

Check failure on line 32 in early-return/starter/main.go

View workflow job for this annotation

GitHub Actions / build-and-test

undefined: client.UpdateWithStartWorkflowOptions (compile)
UpdateOptions: client.UpdateWorkflowOptions{
UpdateName: earlyreturn.UpdateName,
WaitForStage: client.WorkflowUpdateStageCompleted,
},
StartWorkflowOperation: startWorkflowOp,
})
if err != nil {
log.Fatalln("Error issuing update-with-start:", err)
}
Expand Down

0 comments on commit 14da98c

Please sign in to comment.