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

Rate limit #43

Merged
merged 6 commits into from
Jan 24, 2024
Merged

Rate limit #43

merged 6 commits into from
Jan 24, 2024

Conversation

zhirafovod
Copy link
Member

Description

rateLimit function calls.

Type of Change

  • Bug Fix
  • New Feature
  • Breaking Change
  • Refactor
  • Documentation
  • Other (please describe)

Checklist

  • I have read the contributing guidelines
  • Existing issues have been referenced (where applicable)
  • I have verified this change is not present in other open pull requests
  • Functionality is documented
  • All code style checks pass
  • New code contribution is covered by automated tests
  • All new and existing tests pass

@zhirafovod zhirafovod requested a review from a team as a code owner January 24, 2024 07:11
.init -f example/rateLimit.yaml --tail "/ until accCount=12"
Started tailing... Press Ctrl+C to stop.
{
"acc": [
Copy link
Contributor

Choose a reason for hiding this comment

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

It will not surprise me if this fails intermittently in CI since you are relying on timing using a non-realtime OS. For example you can see the counts are not always multiples of 10. We see "28, 38, 48...65". Variance will be even higher in CI. JS makes no guarantee of the period of setInterval. It is just a best effort depending on what else the CPU is doing.

@zhirafovod zhirafovod merged commit 77f5037 into main Jan 24, 2024
1 check passed
@zhirafovod zhirafovod deleted the rate_limit branch January 24, 2024 16:21
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