From ace2fded7e479fc23712192d3e28d1b921e7180f Mon Sep 17 00:00:00 2001 From: Morgan Bazalgette Date: Thu, 2 Feb 2017 11:56:32 +0100 Subject: [PATCH] Up the API rate limits slightly --- app/rate_limiter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/rate_limiter.go b/app/rate_limiter.go index b0b34f7..2612e97 100644 --- a/app/rate_limiter.go +++ b/app/rate_limiter.go @@ -29,8 +29,8 @@ func rateLimiter() { } func perUserRequestLimiter(uid int, ip string) { if uid == 0 { - limit.Request("ip:"+ip, 60) + limit.Request("ip:"+ip, 200) } else { - limit.Request("user:"+strconv.Itoa(uid), 2000) + limit.Request("user:"+strconv.Itoa(uid), 3000) } }