Skip to content

First batch of rate limiter changes #6872

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

Merged
merged 5 commits into from
Jul 26, 2023

Conversation

pietroalbini
Copy link
Member

This PR contains the first batch of changes needed to implement proper rate limiting for yanking and unyanking:

  • It adds a new macro to easily generate postgres enums.
  • It adds an action column to the rate limit tables. Right now it only supports the publish-new action, but in a future PR it'll allow for different kinds of rate limits.
  • It renames PublishRateLimit to RateLimiter, in anticipation for it being able to limit more actions.

@pietroalbini pietroalbini requested a review from Turbo87 July 25, 2023 07:53
@Turbo87 Turbo87 added C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear A-backend ⚙️ labels Jul 25, 2023
@pietroalbini pietroalbini force-pushed the pa-rate-limits-part1 branch from 7529392 to c4ebc04 Compare July 25, 2023 08:40
@pietroalbini
Copy link
Member Author

Addressed all review comments.

@Turbo87 Turbo87 merged commit e5e756e into rust-lang:main Jul 26, 2023
@pietroalbini pietroalbini deleted the pa-rate-limits-part1 branch July 26, 2023 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend ⚙️ C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants