Skip to content

Commit 8ee9943

Browse files
authored
MultiOperation handler refactoring (#7025)
## 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) -->
1 parent 991a038 commit 8ee9943

File tree

2 files changed

+203
-145
lines changed

2 files changed

+203
-145
lines changed

service/history/api/create_workflow_util.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ type (
5454
RunID string
5555
LastWriteVersion int64
5656
}
57-
CreateOrUpdateLeaseFunc func(WorkflowLease, shard.Context, workflow.MutableState) (WorkflowLease, error)
57+
CreateOrUpdateLeaseFunc func(
58+
WorkflowLease,
59+
shard.Context,
60+
workflow.MutableState,
61+
) (WorkflowLease, error)
5862
)
5963

6064
func NewWorkflowWithSignal(

0 commit comments

Comments
 (0)