diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-12-19 21:22:29 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-12-19 21:22:29 +0100 |
commit | aa37ef082d0e4aaedeb219d0a3f726da146edba7 (patch) | |
tree | 2d5ebc419cf9e261cfa025340ca01f37d568fdc1 /src/operations/pending.ts | |
parent | 0c9358c1b2bd80e25940022e86bd8daef8184ad7 (diff) | |
download | wallet-core-aa37ef082d0e4aaedeb219d0a3f726da146edba7.tar.xz |
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.ts | 3 |
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( |