We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 111a095 commit 91f07d8Copy full SHA for 91f07d8
packages/service-utils/src/core/rateLimit/index.ts
@@ -76,7 +76,7 @@ export async function rateLimit(args: {
76
* Only track rate limit when its hit for the first time.
77
* Not waiting for tracking to complete as user doesn't need to wait.
78
*/
79
- if (requestCount === 1 && project?.id) {
+ if (requestCount <= limitPerWindow + 1 && project?.id) {
80
updateRateLimitedAt(project.id, serviceConfig).catch(() => {
81
// no-op
82
});
0 commit comments