aboutsummaryrefslogtreecommitdiffstats
path: root/lib/db.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-01-09 23:10:35 -0800
committerAdam Soltys <[email protected]>2024-01-09 23:10:39 -0800
commit7a84d2555ffabbe29b23cf6e5035b6a4be8b9eb6 (patch)
tree9fe2b7d523bbfe34176f115cb6823403fef1f802 /lib/db.js
parente06878e18fc33e392fd16b76d1ab9f25f8bc7fbe (diff)
downloadcoinos-server-7a84d2555ffabbe29b23cf6e5035b6a4be8b9eb6.tar.gz
coinos-server-7a84d2555ffabbe29b23cf6e5035b6a4be8b9eb6.zip
remove users from archive once migrated
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");
}
}