aboutsummaryrefslogtreecommitdiffstats
path: root/lib/db.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/db.js')
-rw-r--r--lib/db.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/db.js b/lib/db.js
index 868f18cc..10c54f02 100644
--- a/lib/db.js
+++ b/lib/db.js
@@ -1,5 +1,5 @@
import config from "$config";
-import { wait, sleep } from "$lib/utils";
+import { fail, wait, sleep } from "$lib/utils";
import { createClient, defineScript } from "redis";
import { warn, l, err } from "$lib/logging";
@@ -130,7 +130,7 @@ export let t = async (k, f) => {
await t(k, f);
} else {
delete retries[k];
- throw new Error("unable to obtain lock");
+ fail("unable to obtain lock");
}
}