From 65a5373acbab0679d232b42398d45f305458e3f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?syuilo=E2=AD=90=EF=B8=8F?= Date: Sat, 14 Jan 2017 06:05:02 +0900 Subject: [PATCH] Refactor: Improve readability --- src/api/api-handler.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api/api-handler.ts b/src/api/api-handler.ts index c0714ad69a..ccd4e89a04 100644 --- a/src/api/api-handler.ts +++ b/src/api/api-handler.ts @@ -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); } }