@plur-ai/core 0.8.2 → 0.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2601,7 +2601,7 @@ async function withAsyncLock(filePath, fn, options) {
|
|
|
2601
2601
|
if (attempt === maxRetries) {
|
|
2602
2602
|
throw new Error(`Failed to acquire lock on ${filePath} after ${maxRetries} retries`);
|
|
2603
2603
|
}
|
|
2604
|
-
const delay = baseDelay * Math.pow(2, attempt);
|
|
2604
|
+
const delay = Math.min(baseDelay * Math.pow(2, attempt), 5e3);
|
|
2605
2605
|
await sleep(delay);
|
|
2606
2606
|
}
|
|
2607
2607
|
}
|