remove mutex options
This commit is contained in:
parent
20496cc24b
commit
cfd430e31c
@ -4,12 +4,7 @@ import { MutexLock } from "../src/MutexLock";
|
|||||||
test(
|
test(
|
||||||
"redis mutex",
|
"redis mutex",
|
||||||
async () => {
|
async () => {
|
||||||
const mutexLock = await MutexLock.create({
|
const mutexLock = await MutexLock.create();
|
||||||
redis: {
|
|
||||||
host: "127.0.0.1",
|
|
||||||
port: 6379,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
const testLock = async () => {
|
const testLock = async () => {
|
||||||
const release = await mutexLock.obtainLock("test");
|
const release = await mutexLock.obtainLock("test");
|
||||||
|
Loading…
Reference in New Issue
Block a user