Skip to content

Commit

Permalink
MultiOperation handler refactoring (#7025)
Browse files Browse the repository at this point in the history
## What changed?
<!-- Describe what has changed in this PR -->

Refactored MultiOperation handler. Based on
#7018.

## Why?
<!-- Tell your future self why have you made these changes -->

Code hygiene.

## How did you test it?
<!-- How have you verified this change? Tested locally? Added a unit
test? Checked in staging env? -->

Existing tests. There are no (intended) behavior changes.

## Potential risks
<!-- Assuming the worst case, what can be broken when deploying this
change to production? -->

## Documentation
<!-- Have you made sure this change doesn't falsify anything currently
stated in `docs/`? If significant
new behavior is added, have you described that in `docs/`? -->

## Is hotfix candidate?
<!-- Is this PR a hotfix candidate or does it require a notification to
be sent to the broader community? (Yes/No) -->
  • Loading branch information
stephanos authored Jan 8, 2025
1 parent 991a038 commit 8ee9943
Show file tree
Hide file tree
Showing 2 changed files with 203 additions and 145 deletions.
6 changes: 5 additions & 1 deletion service/history/api/create_workflow_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ type (
RunID string
LastWriteVersion int64
}
CreateOrUpdateLeaseFunc func(WorkflowLease, shard.Context, workflow.MutableState) (WorkflowLease, error)
CreateOrUpdateLeaseFunc func(
WorkflowLease,
shard.Context,
workflow.MutableState,
) (WorkflowLease, error)
)

func NewWorkflowWithSignal(
Expand Down
Loading

0 comments on commit 8ee9943

Please sign in to comment.