Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Dec 24, 2024
1 parent 620f5a8 commit d22fc5d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions flow/activities/flowable.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,13 +332,8 @@ func (a *FlowableActivity) SyncFlow(
}

if syncErr != nil {
if groupCtx.Err() != nil {
// need to return ctx.Err(), avoid returning syncErr that's wrapped context canceled
break
}
logger.Error("failed to sync records", slog.Any("error", syncErr))
close(cdcState.syncDone)
return errors.Join(syncErr, cdcState.errGroup.Wait())
break
} else {
totalRecordsSynced += numRecordsSynced
logger.Info("synced records",
Expand Down

0 comments on commit d22fc5d

Please sign in to comment.