aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/util/retries.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-05-19 11:01:07 +0200
committerFlorian Dold <florian@dold.me>2022-05-19 11:01:07 +0200
commit25af1987b26000de0f8272678675978b27d14775 (patch)
tree004ca85c4658a68eee180fe26645f41116a3e394 /packages/taler-wallet-core/src/util/retries.ts
parentb2931fbac62a128862f310028c16b32b12f0c14e (diff)
downloadwallet-core-25af1987b26000de0f8272678675978b27d14775.tar.xz
-formattingv0.9.0-dev.11
Diffstat (limited to 'packages/taler-wallet-core/src/util/retries.ts')
-rw-r--r--packages/taler-wallet-core/src/util/retries.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/taler-wallet-core/src/util/retries.ts b/packages/taler-wallet-core/src/util/retries.ts
index 965ba033a..2697ca4ab 100644
--- a/packages/taler-wallet-core/src/util/retries.ts
+++ b/packages/taler-wallet-core/src/util/retries.ts
@@ -66,7 +66,6 @@ function updateTimeout(
}
export namespace RetryInfo {
-
export function getDuration(
r: RetryInfo | undefined,
p: RetryPolicy = defaultRetryPolicy,
@@ -80,7 +79,8 @@ export namespace RetryInfo {
}
const t = p.backoffDelta.d_ms * Math.pow(p.backoffBase, r.retryCounter);
return {
- d_ms: p.maxTimeout.d_ms === "forever" ? t : Math.min(p.maxTimeout.d_ms, t),
+ d_ms:
+ p.maxTimeout.d_ms === "forever" ? t : Math.min(p.maxTimeout.d_ms, t),
};
}