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

Decide rate limit based on header during runtime #208

Open
6 of 10 tasks
joyguptaa opened this issue Mar 18, 2024 · 0 comments
Open
6 of 10 tasks

Decide rate limit based on header during runtime #208

joyguptaa opened this issue Mar 18, 2024 · 0 comments

Comments

@joyguptaa
Copy link
Contributor

Issue Description

In the updated flow of mention-each we have hardcoded the API rate limit to 5. If it gets increased in future we then have to make changes here again. Instead, we can decide the rate limit during runtime by sending out a single message and retrieving the API rate limit from headers.

Expected Behavior

We should decide what the rate limit is during runtime instead of hard coding it. So that in the future if it gets increased, our batch size should also update itself automatically.

Current Behavior

As the batch size is hard coded, it cannot auto-update itself. If the rate limit somehow increases, we need to deploy it again.

Screenshots

image

Reproducibility

  • This issue is reproducible
  • This issue is not reproducible

Steps to Reproduce

  1. Visit guildRole.ts

Severity/Priority

  • Critical
  • High
  • Medium
  • Low

Additional Information

Checklist

  • I have read and followed the project's code of conduct.
  • I have searched for similar issues before creating this one.
  • I have provided all the necessary information to understand and reproduce the issue.
  • I am willing to contribute to the resolution of this issue.
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

No branches or pull requests

1 participant