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

feat: add ability to limit number of records #11

Merged
merged 1 commit into from
Jun 28, 2023
Merged

feat: add ability to limit number of records #11

merged 1 commit into from
Jun 28, 2023

Conversation

jta
Copy link
Contributor

@jta jta commented Jun 23, 2023

This allows callers to cap the number of records in a given run.

This would have been trivial had we picked an API that didn't pass around channels, but alas, mistakes were made. As is, we need to read off one channel, and write to another. Shutdown is done from the write end.

Copy link
Contributor

@obs-gh-irismcleary obs-gh-irismcleary left a comment

Choose a reason for hiding this comment

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

Yeah, this looks like it will work

This allows callers to cap the number of records in a given run.

This would have been trivial had we picked an API that didn't pass
around channels, but alas, mistakes were made. As is, we need to read
off one channel, and write to another. Shutdown is done from the write
end.
@jta jta merged commit 8d442f0 into main Jun 28, 2023
@jta jta deleted the joao/maxrecords branch June 28, 2023 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants