-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add Rate limiting ability to launcher #82
base: main
Are you sure you want to change the base?
Conversation
- update to go 1.18 and other dependecies
}) | ||
|
||
t.Run("5 concurrent workers with 100ms rate limit", func(t *testing.T) { | ||
c, _ := nop.NewConsumer(nop.Repeat, `{"type":"test","info":"?wait-time=10ms"}`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't the comment be 10ms not 100ms?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The worker takes 10ms to run, but the rate limit is set to 100ms. So we'd expected a worker to run every 100ms, but for its average task time to be 10ms.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks fine to me.
No description provided.