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

Fix rate limit name "api-count" → "apiCount" #645

Merged
merged 2 commits into from
Nov 29, 2022
Merged

Conversation

hjr265
Copy link
Contributor

@hjr265 hjr265 commented Nov 29, 2022

Setting rate limit for "apiCount" from the command line doesn't seem to work.

"apiCount" is invalid as far as the "-ratelimit" flag is concerned.

But "api-count" is then not a rate limit that is defined in handlers/handlers.go:

case "apiCount":
rateLimits.apiCount = r

Copy link
Contributor Author

@hjr265 hjr265 left a comment

Choose a reason for hiding this comment

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

[Moved to PR description]

This is more consistent, as most options are kebab-case, rather than
camelCase. Make both work though, no reason to reject apicount or
APICount.
@arp242 arp242 merged commit 81ba2ca into arp242:master Nov 29, 2022
@arp242
Copy link
Owner

arp242 commented Nov 29, 2022

Thanks! I added a commit to the PR to fix it so that both work: no reason to reject either apiCount or api-count, we know what's intended.

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.

None yet

2 participants