Skip to content

Commit

Permalink
Remove unused environment variable (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-maj authored Oct 16, 2023
1 parent 2282607 commit 4ac5a5c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/db/transactions/getSentTxs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
};
1 change: 0 additions & 1 deletion src/db/transactions/getSentUserOps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
};
2 changes: 0 additions & 2 deletions src/utils/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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("")
Expand Down Expand Up @@ -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,
},
Expand Down

0 comments on commit 4ac5a5c

Please sign in to comment.