Skip to content

Commit

Permalink
Pass "true" for continueOnError from WorkerPoolIgnoreError. (#1117)
Browse files Browse the repository at this point in the history
  • Loading branch information
timburks authored Mar 22, 2023
1 parent 2e9fc58 commit ddc4fbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/registry/tasks/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func WorkerPool(ctx context.Context, n int, continueOnError bool) (chan<- Task,
// returns a wait function that captures and logs the error at Error level. This
// is convenient for defer.
func WorkerPoolIgnoreError(ctx context.Context, n int) (chan<- Task, func()) {
wp, w := WorkerPool(ctx, n, false)
wp, w := WorkerPool(ctx, n, true)
wait := func() {
if err := w(); err != nil {
log.FromContext(ctx).WithError(err).Errorf("unhandled WorkerPool error")
Expand Down

0 comments on commit ddc4fbb

Please sign in to comment.