File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 48
48
# RATE_LIMIT_REQUEST_CODE_WINDOW_HOURS=24
49
49
50
50
# OPTIONAL: Rate limit for general READ operations (e.g., GET /headlines).
51
- # RATE_LIMIT_READ_LIMIT=500
51
+ # RATE_LIMIT_READ_LIMIT=1500
52
52
# OPTIONAL: Window for READ operations, in minutes.
53
53
# RATE_LIMIT_READ_WINDOW_MINUTES=60
54
54
55
55
# OPTIONAL: Rate limit for general WRITE operations (e.g., POST /headlines).
56
56
# This is typically stricter than the read limit.
57
- # RATE_LIMIT_WRITE_LIMIT=50
57
+ # RATE_LIMIT_WRITE_LIMIT=150
58
58
# OPTIONAL: Window for WRITE operations, in minutes.
59
59
# RATE_LIMIT_WRITE_WINDOW_MINUTES=60
Original file line number Diff line number Diff line change @@ -159,9 +159,9 @@ abstract final class EnvironmentConfig {
159
159
160
160
/// Retrieves the request limit for READ operations.
161
161
///
162
- /// Defaults to 5000 if not set or if parsing fails.
162
+ /// Defaults to 1500 if not set or if parsing fails.
163
163
static int get rateLimitReadLimit {
164
- return int .tryParse (_env['RATE_LIMIT_READ_LIMIT' ] ?? '500 ' ) ?? 500 ;
164
+ return int .tryParse (_env['RATE_LIMIT_READ_LIMIT' ] ?? '1500 ' ) ?? 1500 ;
165
165
}
166
166
167
167
/// Retrieves the time window for the READ operations rate limit.
@@ -175,9 +175,9 @@ abstract final class EnvironmentConfig {
175
175
176
176
/// Retrieves the request limit for WRITE operations.
177
177
///
178
- /// Defaults to 500 if not set or if parsing fails.
178
+ /// Defaults to 150 if not set or if parsing fails.
179
179
static int get rateLimitWriteLimit {
180
- return int .tryParse (_env['RATE_LIMIT_WRITE_LIMIT' ] ?? '50 ' ) ?? 50 ;
180
+ return int .tryParse (_env['RATE_LIMIT_WRITE_LIMIT' ] ?? '150 ' ) ?? 150 ;
181
181
}
182
182
183
183
/// Retrieves the time window for the WRITE operations rate limit.
You can’t perform that action at this time.
0 commit comments