Closed Intizar-T closed 3 months ago
[!WARNING]
Rate limit exceeded
@Intizar-T has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 19 minutes and 35 seconds before requesting another review.
How to resolve this issue?
After the wait time has elapsed, a review can be triggered using the `@coderabbitai review` command as a PR comment. Alternatively, push new commits to this PR. We recommend that you space out your commits to avoid hitting the rate limit.How do rate limits work?
CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our [FAQ](https://coderabbit.ai/docs/faq) for further information.Commits
Files that changed from the base of the PR and between 9436a4800bed9431c753e018f9b9f41df5fea4ee and a27f945a5b1ebc1d10cdb97f22948ca1d036a27f.
The updates introduce a constant MAX_FEED_SUBMISSION_COUNT
set to 8 in sentinel/pkg/checker/event/app.go
. The checkFeeds
function now monitors the number of feed events within the last minute and logs a warning if the count exceeds this threshold. A new function, countLastMinFeedEvents
, assists in performing this count. The types.go
file includes a helper function, feedLastMinEventQuery
, for constructing event count queries.
Files | Change Summaries |
---|---|
sentinel/pkg/checker/event/app.go |
Introduced MAX_FEED_SUBMISSION_COUNT constant, updated checkFeeds for feed event count and warning, and added countLastMinFeedEvents function. |
sentinel/pkg/checker/event/types.go |
Added feedLastMinEventQuery function to create queries for counting feed events in the last minute. |
sequenceDiagram
participant Client
participant App as checkFeeds()
participant DB as Database
Client->>App: Trigger checkFeeds()
App->>DB: Query feedLastMinEventQuery()
DB-->>App: Return event count
App->>App: Check if count > MAX_FEED_SUBMISSION_COUNT
App-->>Client: Return warning if threshold exceeded
In the data realm where feeds abound,
Eight's the limit where caution's found.
With queries swift and warnings true,
Our code ensures the best for you.
Counting moments, feeds in flight,
We keep the balance day and night. 🌙📝
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
Type of change
Please delete options that are not relevant.
Checklist before requesting a review
Deployment