Skip to content

Commit 91f07d8

Browse files
committed
check fix
1 parent 111a095 commit 91f07d8

File tree

1 file changed

+1
-1
lines changed
  • packages/service-utils/src/core/rateLimit

1 file changed

+1
-1
lines changed

packages/service-utils/src/core/rateLimit/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export async function rateLimit(args: {
7676
* Only track rate limit when its hit for the first time.
7777
* Not waiting for tracking to complete as user doesn't need to wait.
7878
*/
79-
if (requestCount === 1 && project?.id) {
79+
if (requestCount <= limitPerWindow + 1 && project?.id) {
8080
updateRateLimitedAt(project.id, serviceConfig).catch(() => {
8181
// no-op
8282
});

0 commit comments

Comments
 (0)