mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-11-27 22:38:34 +09:00
Refactor: Improve readability
This commit is contained in:
parent
f793f80cfd
commit
65a5373acb
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user