Skip to content

Commit

Permalink
chore: Made it easier to track which IP Address got ratelimited
Browse files Browse the repository at this point in the history
  • Loading branch information
FleetAdmiralJakob committed Jan 21, 2024
1 parent bc907cb commit 4df9eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/trpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const rateLimitMiddleware = t.middleware(async ({ ctx, path, next }) => {
log.warn("Rate limit exceeded", { ip: identifier });
throw new TRPCError({
code: "INTERNAL_SERVER_ERROR",
message: "Rate limit exceeded",
message: "Rate limit exceeded on this IP: " + identifier,
});
}
return next();
Expand Down

1 comment on commit 4df9eb2

@vercel
Copy link

@vercel vercel bot commented on 4df9eb2 Jan 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.