Spaces:
Build error
Build error
saas: new rate limit policy
Browse files- src/api/crawler.ts +1 -1
- src/api/searcher-serper.ts +1 -1
src/api/crawler.ts
CHANGED
|
@@ -260,7 +260,7 @@ export class CrawlerHost extends RPCHost {
|
|
| 260 |
const rateLimitPolicy = auth.getRateLimits(rpcReflect.name.toUpperCase()) || [
|
| 261 |
parseInt(user.metadata?.speed_level) >= 2 ?
|
| 262 |
RateLimitDesc.from({
|
| 263 |
-
occurrence:
|
| 264 |
periodSeconds: 60
|
| 265 |
}) :
|
| 266 |
RateLimitDesc.from({
|
|
|
|
| 260 |
const rateLimitPolicy = auth.getRateLimits(rpcReflect.name.toUpperCase()) || [
|
| 261 |
parseInt(user.metadata?.speed_level) >= 2 ?
|
| 262 |
RateLimitDesc.from({
|
| 263 |
+
occurrence: 2000,
|
| 264 |
periodSeconds: 60
|
| 265 |
}) :
|
| 266 |
RateLimitDesc.from({
|
src/api/searcher-serper.ts
CHANGED
|
@@ -130,7 +130,7 @@ export class SearcherHost extends RPCHost {
|
|
| 130 |
const rateLimitPolicy = auth.getRateLimits(rpcReflect.name.toUpperCase()) || [
|
| 131 |
parseInt(user.metadata?.speed_level) >= 2 ?
|
| 132 |
RateLimitDesc.from({
|
| 133 |
-
occurrence:
|
| 134 |
periodSeconds: 60
|
| 135 |
}) :
|
| 136 |
RateLimitDesc.from({
|
|
|
|
| 130 |
const rateLimitPolicy = auth.getRateLimits(rpcReflect.name.toUpperCase()) || [
|
| 131 |
parseInt(user.metadata?.speed_level) >= 2 ?
|
| 132 |
RateLimitDesc.from({
|
| 133 |
+
occurrence: 400,
|
| 134 |
periodSeconds: 60
|
| 135 |
}) :
|
| 136 |
RateLimitDesc.from({
|