Up the API rate limits slightly
This commit is contained in:
1 parent
0d58fd3f63
commit
ace2fded7e
1 file changed
+2
-2
+2
-2
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user