-
Notifications
You must be signed in to change notification settings - Fork 62
[chore] rate limit types in peggy proto #320
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
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughThis update introduces rate limit management for Peggy assets, including new protobuf messages, RPC methods, and codec registrations for rate limit operations. It also adds a new key prefix for rate limits in the Peggy module. The majority of other changes consist of enhanced comments and documentation across numerous protobuf files, clarifying the semantics and formats of message fields throughout the codebase. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant PeggyModule
participant Store
Client->>PeggyModule: CreateRateLimit (token, limit, window, price_id, etc.)
PeggyModule->>Store: Store new RateLimit entry
Store-->>PeggyModule: Confirmation
PeggyModule-->>Client: MsgCreateRateLimitResponse
Client->>PeggyModule: UpdateRateLimit (token, new_limit, new_window, new_price_id)
PeggyModule->>Store: Update existing RateLimit entry
Store-->>PeggyModule: Confirmation
PeggyModule-->>Client: MsgUpdateRateLimitResponse
Client->>PeggyModule: RemoveRateLimit (token)
PeggyModule->>Store: Delete RateLimit entry
Store-->>PeggyModule: Confirmation
PeggyModule-->>Client: MsgRemoveRateLimitResponse
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (1.64.8)Error: you are using a configuration file for golangci-lint v2 with golangci-lint v1: please use golangci-lint v2 📜 Recent review detailsConfiguration used: .coderabbit.yaml ⛔ Files ignored due to path filters (19)
📒 Files selected for processing (23)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Chores