socket-function 1.1.45 → 1.1.46
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/package.json +1 -1
- package/src/batching.ts +1 -1
package/package.json
CHANGED
package/src/batching.ts
CHANGED
|
@@ -337,8 +337,8 @@ export function retryFunctional<T extends AnyFunction>(fnc: T, config?: {
|
|
|
337
337
|
throw e;
|
|
338
338
|
}
|
|
339
339
|
if (retries < 0) throw e;
|
|
340
|
-
console.warn(`Retrying ${name}, due to error ${String(e.stack)}`);
|
|
341
340
|
retries--;
|
|
341
|
+
console.warn(`Retrying ${name} (${retries} left), due to error ${String(e.stack)}`);
|
|
342
342
|
let curCount = maxRetries - retries;
|
|
343
343
|
await delay(minDelay * expFactor ** curCount);
|
|
344
344
|
return runFnc(args, retries);
|