Skip to content

Commit c54ced5

Browse files
authored
fix: add RATE_LIMIT env var (#155)
1 parent caff424 commit c54ced5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export const CONFIG: Config = {
175175
aalgWarmup: Boolean(process.env.AALG_WARMUP) || true,
176176
aalgWarmupServiceTPS: 10,
177177
recordTxStatus: false, // not safe for production, keep this off. Known issue.
178-
rateLimit: true,
178+
rateLimit: process.env.RATE_LIMIT ? process.env.RATE_LIMIT === 'true' : true, // if RATE_LIMIT is not set, default to true
179179
rateLimitOption: {
180180
softReject: true,
181181
limitFromAddress: true,

0 commit comments

Comments
 (0)