Skip to content

Commit

Permalink
defers cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
Amogh-Bharadwaj authored and iskakaushik committed Nov 17, 2023
1 parent dce29d6 commit eed05ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow/workflows/cdc_flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ func CDCFlowWorkflowWithConfig(
}

// cancel the SendWalHeartbeat activity
cancelHeartbeat()
defer cancelHeartbeat()

state.TruncateProgress()
return nil, workflow.NewContinueAsNewError(ctx, CDCFlowWorkflowWithConfig, cfg, limits, state)
Expand Down

0 comments on commit eed05ff

Please sign in to comment.