Skip to content

use rate-limiter for better default behavior#119

Merged
rahulbot merged 1 commit into
mainfrom
feature-rate-limit
May 5, 2026
Merged

use rate-limiter for better default behavior#119
rahulbot merged 1 commit into
mainfrom
feature-rate-limit

Conversation

@rahulbot
Copy link
Copy Markdown
Contributor

@rahulbot rahulbot commented May 4, 2026

Very small change to use a rate limiter for better behavior by default. People (and us) can always override client. RATE_LIMIT_PER_MINUTE value to speed things up. Defaults to 2/second, which is the default in server code for standard users.

I suppose we could make a call to profile endpoint and set this value at client instantiation time to better reflect membership in GROUPS.HIGH_RATE_LIMIT or admin status but that feels a little "too clever" at first glance to me.

also linting from something
@rahulbot rahulbot requested a review from philbudne May 4, 2026 14:27
@philbudne
Copy link
Copy Markdown
Contributor

Just checking: do you have pre-commit the hook installed?

@rahulbot
Copy link
Copy Markdown
Contributor Author

rahulbot commented May 5, 2026

Yes. It ran some stuff that changed the code via some set of linting rules before it would let me commit.

@rahulbot rahulbot merged commit 4ced12b into main May 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants