From 20496cc24bfbfaa9e0f1ccb85d50bb05c535015e Mon Sep 17 00:00:00 2001 From: HorizonCode Date: Fri, 10 Jan 2025 01:20:11 +0100 Subject: [PATCH] make MutexOptions optional --- src/MutexLock.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MutexLock.ts b/src/MutexLock.ts index 39aad97..98c79bf 100644 --- a/src/MutexLock.ts +++ b/src/MutexLock.ts @@ -16,7 +16,7 @@ export class MutexLock { this.redisClient = redisClient; } - static async create(options: MutexOptions) { + static async create(options?: MutexOptions) { const redisClient = await redis .createClient({ url: `redis://${options?.redis?.host ?? "127.0.0.1"}:${options?.redis?.port ?? 6379}`,