Skip to content
Permalink
Browse files

Disable the RateLimiter for benchmarking

  • Loading branch information
jirkamarsik committed May 6, 2019
1 parent 7b6160c commit 151daef85e6888bd2fed348297d5ca09da2a3445
Showing with 3 additions and 0 deletions.
  1. +3 −0 app/debiki/RateLimiter.scala
@@ -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

0 comments on commit 151daef

Please sign in to comment.
You can’t perform that action at this time.