Skip to content

Commit

Permalink
Add linting directive to suppress exhaustive lint warning in populate…
Browse files Browse the repository at this point in the history
…ChildInitEventsAfterReset
  • Loading branch information
gow committed Feb 4, 2025
1 parent b3d1623 commit 5f71593
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions service/history/ndc/workflow_resetter.go
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,7 @@ func (r *workflowResetterImpl) reapplyEventsFromBranch(

// populateChildInitEventsAfterReset populates the childInitEventsAfterReset map with the init events of child workflows that are not yet completed.
func (r *workflowResetterImpl) populateChildInitEventsAfterReset(childInitEventsAfterReset map[int64]*historypb.HistoryEvent, event *historypb.HistoryEvent) {
// nolint:exhaustive
switch event.GetEventType() {
// track the child if it has been initiated after reset
case enumspb.EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_INITIATED:
Expand Down

0 comments on commit 5f71593

Please sign in to comment.