Skip to content

Commit 4699307

Browse files
committed
remove unused env var
1 parent 07e1e42 commit 4699307

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/utils/env.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,8 @@ export const env = createEnv({
7979
.nonnegative()
8080
.default(0),
8181
REDIS_URL: z.string(),
82-
SEND_TRANSACTION_QUEUE_CONCURRENCY: z.coerce.number().default(1000),
83-
CONFIRM_TRANSACTION_QUEUE_CONCURRENCY: z.coerce.number().default(1000),
84-
CANCEL_TRANSACTION_QUEUE_CONCURRENCY: z.coerce.number().default(1000),
82+
SEND_TRANSACTION_QUEUE_CONCURRENCY: z.coerce.number().default(1500),
83+
CONFIRM_TRANSACTION_QUEUE_CONCURRENCY: z.coerce.number().default(1500),
8584
ENGINE_MODE: z.enum(["sandbox", "unrestricted"]).default("unrestricted"),
8685
},
8786
clientPrefix: "NEVER_USED",
@@ -112,8 +111,6 @@ export const env = createEnv({
112111
process.env.SEND_TRANSACTION_QUEUE_CONCURRENCY,
113112
CONFIRM_TRANSACTION_QUEUE_CONCURRENCY:
114113
process.env.CONFIRM_TRANSACTION_QUEUE_CONCURRENCY,
115-
CANCEL_TRANSACTION_QUEUE_CONCURRENCY:
116-
process.env.CANCEL_TRANSACTION_QUEUE_CONCURRENCY,
117114
ENGINE_MODE: process.env.ENGINE_MODE,
118115
},
119116
onValidationError: (error: ZodError) => {

src/worker/tasks/mineTransactionWorker.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,8 @@ _worker.on("failed", async (job: Job<string> | undefined) => {
234234

235235
if (!sentTransaction.isUserOp) {
236236
// Release the nonce to allow another transaction to acquire it.
237+
// Unlikely but probably case: The transaction is mined immediately after
238+
// another transaction was submitted with this nonce.
237239
job.log(`Releasing nonce ${sentTransaction.nonce}.`);
238240
await releaseNonce(
239241
sentTransaction.chainId,

0 commit comments

Comments
 (0)