Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed May 26, 2024
1 parent b063b61 commit 733aa7b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions flow/activities/flowable_core.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,7 @@ func syncCore[TPull connectors.CDCPullConnectorCore, TSync connectors.CDCSyncCon

if !hasRecords {
// wait for the pull goroutine to finish
err = errGroup.Wait()
if err != nil {
if err := errGroup.Wait(); err != nil {
a.Alerter.LogFlowError(ctx, flowName, err)
if temporal.IsApplicationError(err) {
return nil, err
Expand Down Expand Up @@ -206,8 +205,7 @@ func syncCore[TPull connectors.CDCPullConnectorCore, TSync connectors.CDCSyncCon
return nil
})

err = errGroup.Wait()
if err != nil {
if err := errGroup.Wait(); err != nil {
a.Alerter.LogFlowError(ctx, flowName, err)
if temporal.IsApplicationError(err) {
return nil, err
Expand Down

0 comments on commit 733aa7b

Please sign in to comment.