From 4ac5a5c412cb73cf737298ae4c4f49e0f8829a2b Mon Sep 17 00:00:00 2001 From: Adam Majmudar <64697628+adam-maj@users.noreply.github.com> Date: Mon, 16 Oct 2023 13:41:21 -0700 Subject: [PATCH] Remove unused environment variable (#223) --- src/db/transactions/getSentTxs.ts | 1 - src/db/transactions/getSentUserOps.ts | 1 - src/utils/env.ts | 2 -- 3 files changed, 4 deletions(-) diff --git a/src/db/transactions/getSentTxs.ts b/src/db/transactions/getSentTxs.ts index 9880a0561..9b84deaca 100644 --- a/src/db/transactions/getSentTxs.ts +++ b/src/db/transactions/getSentTxs.ts @@ -36,7 +36,6 @@ export const getSentTxs = async ({ pgtx }: GetSentTxsParams = {}): Promise< sentAt: "asc", }, ], - // TODO: Should this be coming from env? take: env.MIN_TX_TO_CHECK_FOR_MINED_STATUS, }); }; diff --git a/src/db/transactions/getSentUserOps.ts b/src/db/transactions/getSentUserOps.ts index 3c6789d66..f98594e87 100644 --- a/src/db/transactions/getSentUserOps.ts +++ b/src/db/transactions/getSentUserOps.ts @@ -38,7 +38,6 @@ export const getSentUserOps = async ({ sentAt: "asc", }, ], - // TODO: Should this be coming from env? take: env.MIN_TX_TO_CHECK_FOR_MINED_STATUS, }); }; diff --git a/src/utils/env.ts b/src/utils/env.ts index a955d3dc1..cfdeba7eb 100644 --- a/src/utils/env.ts +++ b/src/utils/env.ts @@ -104,7 +104,6 @@ export const env = createEnv({ MAX_RETRIES_FOR_TX: z.coerce.number().default(3), RETRY_TX_CRON_SCHEDULE: z.string().default("*/30 * * * * *"), MAX_BLOCKS_ELAPSED_BEFORE_RETRY: z.coerce.number().default(15), - MAX_WAIT_TIME_BEFORE_RETRY: z.coerce.number().default(600), WEBHOOK_URL: z .string() .default("") @@ -170,7 +169,6 @@ export const env = createEnv({ RETRY_TX_CRON_SCHEDULE: process.env.RETRY_TX_CRON_SCHEDULE, MAX_BLOCKS_ELAPSED_BEFORE_RETRY: process.env.MAX_BLOCKS_ELAPSED_BEFORE_RETRY, - MAX_WAIT_TIME_BEFORE_RETRY: process.env.MAX_WAIT_TIME_BEFORE_RETRY, WEBHOOK_URL: process.env.WEBHOOK_URL, WEBHOOK_AUTH_BEARER_TOKEN: process.env.WEBHOOK_AUTH_BEARER_TOKEN, },