Async False (#18611)
This commit is contained in:
@@ -45,7 +45,6 @@ export function rateLimiter() {
|
||||
namespace: "core",
|
||||
limit: 10,
|
||||
duration: "60s",
|
||||
async: true,
|
||||
timeout,
|
||||
}),
|
||||
common: new Ratelimit({
|
||||
@@ -53,7 +52,6 @@ export function rateLimiter() {
|
||||
namespace: "common",
|
||||
limit: 200,
|
||||
duration: "60s",
|
||||
async: true,
|
||||
timeout,
|
||||
}),
|
||||
forcedSlowMode: new Ratelimit({
|
||||
@@ -61,7 +59,6 @@ export function rateLimiter() {
|
||||
namespace: "forcedSlowMode",
|
||||
limit: 1,
|
||||
duration: "30s",
|
||||
async: true,
|
||||
timeout,
|
||||
}),
|
||||
api: new Ratelimit({
|
||||
@@ -69,7 +66,6 @@ export function rateLimiter() {
|
||||
namespace: "api",
|
||||
limit: API_KEY_RATE_LIMIT,
|
||||
duration: "60s",
|
||||
async: true,
|
||||
timeout,
|
||||
}),
|
||||
ai: new Ratelimit({
|
||||
@@ -77,7 +73,6 @@ export function rateLimiter() {
|
||||
namespace: "ai",
|
||||
limit: 20,
|
||||
duration: "1d",
|
||||
async: true,
|
||||
timeout,
|
||||
}),
|
||||
sms: new Ratelimit({
|
||||
@@ -85,7 +80,6 @@ export function rateLimiter() {
|
||||
namespace: "sms",
|
||||
limit: 50,
|
||||
duration: "5m",
|
||||
async: true,
|
||||
timeout,
|
||||
}),
|
||||
smsMonth: new Ratelimit({
|
||||
@@ -93,7 +87,6 @@ export function rateLimiter() {
|
||||
namespace: "smsMonth",
|
||||
limit: 250,
|
||||
duration: "30d",
|
||||
async: true,
|
||||
timeout,
|
||||
}),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user