move rate limiters to lila.memo

This commit is contained in:
Thibault Duplessis 2015-11-05 09:41:26 +07:00
parent 3a4e7e57d5
commit 6361eb4182
2 changed files with 3 additions and 4 deletions

View file

@ -19,8 +19,8 @@ object Setup extends LilaController with TheftPrevention {
private def env = Env.setup
private val FormRateLimit = new lila.security.RateLimitByKey(1 second)
private val PostRateLimit = new lila.security.RateLimitByKey(1 second)
private val FormRateLimit = new lila.memo.RateLimitByKey(1 second)
private val PostRateLimit = new lila.memo.RateLimitByKey(1 second)
def aiForm = Open { implicit ctx =>
if (HTTPRequest isXhr ctx.req) {

View file

@ -1,6 +1,5 @@
package lila.security
package lila.memo
import lila.memo.ExpireSetMemo
import scala.concurrent.duration.Duration
import ornicar.scalalib.Zero