Skip to content

Commit

Permalink
just debug system test
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ocean committed Dec 16, 2024
1 parent b9a4007 commit f2cfda6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/httpRoutes/requestValidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ export function checkConnectionsRateLimit(
const connectionLimits =
configuration.maxConnections || DEFAULT_MAX_CONNECTIONS_PER_MINUTE
const ok = connectionsData.numRequests <= connectionLimits
if (!ok) {
console.log(
`Connection limit exceeded ${connectionsData.numRequests} limit: ${connectionLimits}`
)
}
return {
valid: ok,
error: ok ? '' : 'Unauthorized request. Rate limit exceeded!'
Expand Down

0 comments on commit f2cfda6

Please sign in to comment.