Skip to content

Commit

Permalink
fix race condition in task (#1119)
Browse files Browse the repository at this point in the history
  • Loading branch information
theganyo authored Mar 22, 2023
1 parent ddc4fbb commit 7f91bf5
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 @@ -60,7 +60,7 @@ func WorkerPool(ctx context.Context, n int, continueOnError bool) (chan<- Task,
f := func() error {
err := t.Run(ctx)
if err != nil {
log.FromContext(ctx).WithError(err).Warnf("task failed: %s", task)
log.FromContext(ctx).WithError(err).Warnf("task failed: %s", t)
}
return err
}
Expand Down

0 comments on commit 7f91bf5

Please sign in to comment.