Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chore] Replace chunks channel with ChunkReporter in git based sources #2082

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

mcastorina
Copy link
Collaborator

Description:

ChunkReporter is more flexible and will allow code reuse for unit chunking. ChanReporter was added as a way to maintain the original channel functionality, so this PR should not alter existing behavior.

Checklist:

  • Tests passing (make test-community)?
  • Lint passing (make lint this requires golangci-lint)?

ChunkReporter is more flexible and will allow code reuse for unit
chunking. ChanReporter was added as a way to maintain the original
channel functionality, so this PR should not alter existing behavior.
@mcastorina mcastorina requested review from a team as code owners November 1, 2023 05:03
Copy link
Collaborator

@rosecodym rosecodym left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what a beautiful, boring pr

Comment on lines +558 to +561
if err := reporter.ChunkOk(ctx, chunk); err != nil {
// TODO: Return error.
return
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What can cause ChunkOk to return an error?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Depends on implementation, but so far only context cancellations.

@mcastorina mcastorina merged commit 52600a8 into main Nov 1, 2023
9 checks passed
@mcastorina mcastorina deleted the chunk-reporter branch November 1, 2023 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants