Skip to content
Snippets Groups Projects
Commit 65a5373a authored by syuilo⭐️'s avatar syuilo⭐️ Committed by GitHub
Browse files

Refactor: Improve readability

parent f793f80c
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,7 @@ export default async (endpoint: IEndpoint, req: express.Request, res: express.Re
try {
await limitter(endpoint, ctx); // Rate limit
} catch (e) {
// drop request if limit exceeded
return reply(429);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment