mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-05 17:10:46 +08:00
fix(auth/redlock): retry cached ACUC lock for 20 seconds
This commit is contained in:
parent
1cca9b8ae6
commit
2c96d2eef6
@ -43,7 +43,10 @@ export async function setCachedACUC(api_key: string, acuc: AuthCreditUsageChunk
|
||||
const lockTTL = 10000; // 10 seconds
|
||||
|
||||
try {
|
||||
const lock = await redlock.acquire([redLockKey], lockTTL);
|
||||
const lock = await redlock.acquire([redLockKey], lockTTL, {
|
||||
retryCount: 200,
|
||||
retryDelay: 100,
|
||||
});
|
||||
|
||||
try {
|
||||
if (typeof acuc === "function") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user