mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader
synced 2025-07-31 00:12:00 +08:00
saas: new rate limit policy
This commit is contained in:
parent
ab715271a2
commit
51779dc2eb
@ -260,7 +260,7 @@ export class CrawlerHost extends RPCHost {
|
|||||||
const rateLimitPolicy = auth.getRateLimits(rpcReflect.name.toUpperCase()) || [
|
const rateLimitPolicy = auth.getRateLimits(rpcReflect.name.toUpperCase()) || [
|
||||||
parseInt(user.metadata?.speed_level) >= 2 ?
|
parseInt(user.metadata?.speed_level) >= 2 ?
|
||||||
RateLimitDesc.from({
|
RateLimitDesc.from({
|
||||||
occurrence: 1000,
|
occurrence: 2000,
|
||||||
periodSeconds: 60
|
periodSeconds: 60
|
||||||
}) :
|
}) :
|
||||||
RateLimitDesc.from({
|
RateLimitDesc.from({
|
||||||
|
@ -130,7 +130,7 @@ export class SearcherHost extends RPCHost {
|
|||||||
const rateLimitPolicy = auth.getRateLimits(rpcReflect.name.toUpperCase()) || [
|
const rateLimitPolicy = auth.getRateLimits(rpcReflect.name.toUpperCase()) || [
|
||||||
parseInt(user.metadata?.speed_level) >= 2 ?
|
parseInt(user.metadata?.speed_level) >= 2 ?
|
||||||
RateLimitDesc.from({
|
RateLimitDesc.from({
|
||||||
occurrence: 100,
|
occurrence: 400,
|
||||||
periodSeconds: 60
|
periodSeconds: 60
|
||||||
}) :
|
}) :
|
||||||
RateLimitDesc.from({
|
RateLimitDesc.from({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user