From ac17d22b18ff80b810f95fc8f15f54b93ca33567 Mon Sep 17 00:00:00 2001 From: Aaron Cook Date: Tue, 8 Oct 2024 12:05:02 +0200 Subject: [PATCH] Increase relay rate limit TTL (#1971) Increases the relay rate limit TTL fallback value to 24 hours: - Change `relay.ttlSeconds` value to `60 * 60 * 24` --- src/config/entities/configuration.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/entities/configuration.ts b/src/config/entities/configuration.ts index 0fc0db6409..a9597aefa2 100644 --- a/src/config/entities/configuration.ts +++ b/src/config/entities/configuration.ts @@ -266,7 +266,7 @@ export default () => ({ process.env.RELAY_PROVIDER_API_BASE_URI || 'https://api.gelato.digital', limit: parseInt(process.env.RELAY_THROTTLE_LIMIT ?? `${5}`), ttlSeconds: parseInt( - process.env.RELAY_THROTTLE_TTL_SECONDS ?? `${60 * 60}`, + process.env.RELAY_THROTTLE_TTL_SECONDS ?? `${60 * 60 * 24}`, ), apiKey: { // Optimism