Up the API rate limits slightly

This commit is contained in:
Morgan Bazalgette 2017-02-02 11:56:32 +01:00
parent 0d58fd3f63
commit ace2fded7e

View File

@ -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)
}
}