aboutsummaryrefslogtreecommitdiff
path: root/src/operations/pending.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-12-19 21:22:29 +0100
committerFlorian Dold <florian.dold@gmail.com>2019-12-19 21:22:29 +0100
commitaa37ef082d0e4aaedeb219d0a3f726da146edba7 (patch)
tree2d5ebc419cf9e261cfa025340ca01f37d568fdc1 /src/operations/pending.ts
parent0c9358c1b2bd80e25940022e86bd8daef8184ad7 (diff)
downloadwallet-core-aa37ef082d0e4aaedeb219d0a3f726da146edba7.tar.gz
wallet-core-aa37ef082d0e4aaedeb219d0a3f726da146edba7.tar.bz2
wallet-core-aa37ef082d0e4aaedeb219d0a3f726da146edba7.zip
do normal back-off when reserve isn't ready yet, run retry-loop in integration test
Diffstat (limited to 'src/operations/pending.ts')
-rw-r--r--src/operations/pending.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/operations/pending.ts b/src/operations/pending.ts
index ed3b59d71..f3cca9f24 100644
--- a/src/operations/pending.ts
+++ b/src/operations/pending.ts
@@ -37,7 +37,8 @@ function updateRetryDelay(
retryTimestamp: Timestamp,
): Duration {
const remaining = getDurationRemaining(retryTimestamp, now);
- return durationMin(oldDelay, remaining);
+ const nextDelay = durationMin(oldDelay, remaining);
+ return nextDelay;
}
async function gatherExchangePending(