Spaces:
Build error
Build error
saas: new rate limit policy
Browse files- src/api/crawler.ts +2 -2
- src/api/searcher.ts +2 -2
- thinapps-shared +1 -1
src/api/crawler.ts
CHANGED
|
@@ -285,11 +285,11 @@ export class CrawlerHost extends RPCHost {
|
|
| 285 |
const rateLimitPolicy = auth.getRateLimits('CRAWL') || [
|
| 286 |
parseInt(user.metadata?.speed_level) >= 2 ?
|
| 287 |
RateLimitDesc.from({
|
| 288 |
-
occurrence:
|
| 289 |
periodSeconds: 60
|
| 290 |
}) :
|
| 291 |
RateLimitDesc.from({
|
| 292 |
-
occurrence:
|
| 293 |
periodSeconds: 60
|
| 294 |
})
|
| 295 |
];
|
|
|
|
| 285 |
const rateLimitPolicy = auth.getRateLimits('CRAWL') || [
|
| 286 |
parseInt(user.metadata?.speed_level) >= 2 ?
|
| 287 |
RateLimitDesc.from({
|
| 288 |
+
occurrence: 5000,
|
| 289 |
periodSeconds: 60
|
| 290 |
}) :
|
| 291 |
RateLimitDesc.from({
|
| 292 |
+
occurrence: 500,
|
| 293 |
periodSeconds: 60
|
| 294 |
})
|
| 295 |
];
|
src/api/searcher.ts
CHANGED
|
@@ -200,11 +200,11 @@ export class SearcherHost extends RPCHost {
|
|
| 200 |
const rateLimitPolicy = auth.getRateLimits(rpcReflect.name.toUpperCase()) || [
|
| 201 |
parseInt(user.metadata?.speed_level) >= 2 ?
|
| 202 |
RateLimitDesc.from({
|
| 203 |
-
occurrence:
|
| 204 |
periodSeconds: 60
|
| 205 |
}) :
|
| 206 |
RateLimitDesc.from({
|
| 207 |
-
occurrence:
|
| 208 |
periodSeconds: 60
|
| 209 |
})
|
| 210 |
];
|
|
|
|
| 200 |
const rateLimitPolicy = auth.getRateLimits(rpcReflect.name.toUpperCase()) || [
|
| 201 |
parseInt(user.metadata?.speed_level) >= 2 ?
|
| 202 |
RateLimitDesc.from({
|
| 203 |
+
occurrence: 1000,
|
| 204 |
periodSeconds: 60
|
| 205 |
}) :
|
| 206 |
RateLimitDesc.from({
|
| 207 |
+
occurrence: 100,
|
| 208 |
periodSeconds: 60
|
| 209 |
})
|
| 210 |
];
|
thinapps-shared
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
Subproject commit
|
|
|
|
| 1 |
+
Subproject commit 02279d88bc3940a08a92cb18cf8877d57cb49b82
|