diff options
Diffstat (limited to 'lib/db.js')
| -rw-r--r-- | lib/db.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"); } } |
