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 c711c18 commit d077061Copy full SHA for d077061
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 <= limitPerWindow + 1 && project?.id) {
+ if (requestCount === limitPerWindow + 1 && project?.id) {
80
updateRateLimitedAt(project.id, serviceConfig).catch(() => {
81
// no-op
82
});
0 commit comments