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

make testing slow consumers easy #429

Merged
merged 2 commits into from
Nov 10, 2023
Merged

make testing slow consumers easy #429

merged 2 commits into from
Nov 10, 2023

Conversation

whyrusleeping
Copy link
Collaborator

used this for testing the bugfix PR earlier

Comment on lines 215 to 218
if rr != 0 {
time.Sleep(rr)
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

Could we use a rate.limiter here instead and then allow a user to configure a maximum throughput? That might be a bit easier to use.

Copy link
Collaborator

@ericvolp12 ericvolp12 left a comment

Choose a reason for hiding this comment

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

lgtm

@ericvolp12 ericvolp12 merged commit 644d4f9 into main Nov 10, 2023
6 checks passed
@ericvolp12 ericvolp12 deleted the feat/read-stream-slowly branch November 10, 2023 21:26
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