Skip to content

Commit

Permalink
Disable the RateLimiter for benchmarking
Browse files Browse the repository at this point in the history
  • Loading branch information
jirkamarsik committed Jun 3, 2019
1 parent 7b6160c commit 151daef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/debiki/RateLimiter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ class RateLimiter(globals: Globals, security: EdSecurity) {


def rateLimit(rateLimits: RateLimits, request: DebikiRequest[_]) {
// Disable rate limits for benchmarking
return

if (request.user.exists(_.isAdmin))
return

Expand Down

0 comments on commit 151daef

Please sign in to comment.