Skip to content

Commit 517b9bd

Browse files
matt-aitkenericallam
authored andcommitted
Fixed spelling mistake “limitter”
1 parent 7555b34 commit 517b9bd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

apps/webapp/app/services/apiRateLimit.server.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export function authorizationRateLimitMiddleware({
6262

6363
return async (req: ExpressRequest, res: ExpressResponse, next: NextFunction) => {
6464
if (log.requests) {
65-
logger.info(`RateLimitter (${keyPrefix}): request to ${req.path}`);
65+
logger.info(`RateLimiter (${keyPrefix}): request to ${req.path}`);
6666
}
6767

6868
//first check if any of the pathMatchers match the request path
@@ -73,19 +73,19 @@ export function authorizationRateLimitMiddleware({
7373
)
7474
) {
7575
if (log.requests) {
76-
logger.info(`RateLimitter (${keyPrefix}): didn't match ${req.path}`);
76+
logger.info(`RateLimiter (${keyPrefix}): didn't match ${req.path}`);
7777
}
7878
return next();
7979
}
8080

8181
if (log.requests) {
82-
logger.info(`RateLimitter (${keyPrefix}): matched ${req.path}`);
82+
logger.info(`RateLimiter (${keyPrefix}): matched ${req.path}`);
8383
}
8484

8585
const authorizationValue = req.headers.authorization;
8686
if (!authorizationValue) {
8787
if (log.requests) {
88-
logger.info(`RateLimitter (${keyPrefix}): no key`);
88+
logger.info(`RateLimiter (${keyPrefix}): no key`);
8989
}
9090
return res.status(401).send("Unauthorized");
9191
}
@@ -104,7 +104,7 @@ export function authorizationRateLimitMiddleware({
104104

105105
if (success) {
106106
if (log.requests) {
107-
logger.info(`RateLimitter (${keyPrefix}): under rate limit`, {
107+
logger.info(`RateLimiter (${keyPrefix}): under rate limit`, {
108108
limit,
109109
reset,
110110
remaining,
@@ -115,7 +115,7 @@ export function authorizationRateLimitMiddleware({
115115
}
116116

117117
if (log.rejections) {
118-
logger.warn(`RateLimitter (${keyPrefix}): rate limit exceeded`, {
118+
logger.warn(`RateLimiter (${keyPrefix}): rate limit exceeded`, {
119119
limit,
120120
reset,
121121
remaining,

0 commit comments

Comments
 (0)