saas: new rate limit policy

This commit is contained in:
yanlong.wang 2025-03-26 11:52:37 +08:00
parent ab715271a2
commit 51779dc2eb
No known key found for this signature in database
GPG Key ID: C0A623C0BADF9F37
2 changed files with 2 additions and 2 deletions

View File

@ -260,7 +260,7 @@ export class CrawlerHost extends RPCHost {
const rateLimitPolicy = auth.getRateLimits(rpcReflect.name.toUpperCase()) || [
parseInt(user.metadata?.speed_level) >= 2 ?
RateLimitDesc.from({
occurrence: 1000,
occurrence: 2000,
periodSeconds: 60
}) :
RateLimitDesc.from({

View File

@ -130,7 +130,7 @@ export class SearcherHost extends RPCHost {
const rateLimitPolicy = auth.getRateLimits(rpcReflect.name.toUpperCase()) || [
parseInt(user.metadata?.speed_level) >= 2 ?
RateLimitDesc.from({
occurrence: 100,
occurrence: 400,
periodSeconds: 60
}) :
RateLimitDesc.from({