Up the API rate limits slightly
This commit is contained in:
parent
0d58fd3f63
commit
ace2fded7e
|
@ -29,8 +29,8 @@ func rateLimiter() {
|
||||||
}
|
}
|
||||||
func perUserRequestLimiter(uid int, ip string) {
|
func perUserRequestLimiter(uid int, ip string) {
|
||||||
if uid == 0 {
|
if uid == 0 {
|
||||||
limit.Request("ip:"+ip, 60)
|
limit.Request("ip:"+ip, 200)
|
||||||
} else {
|
} else {
|
||||||
limit.Request("user:"+strconv.Itoa(uid), 2000)
|
limit.Request("user:"+strconv.Itoa(uid), 3000)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user