aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/util/retries.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-06-10 16:32:37 +0200
committerFlorian Dold <florian@dold.me>2021-06-10 16:32:37 +0200
commit8ad36d89f55783c34043ee9ef37759cd94bcec7c (patch)
tree1e638b45e59ef50985f799b57590032a57ac7049 /packages/taler-wallet-core/src/util/retries.ts
parent7b7e3b4565169835ad04062d5c76ba655abd770a (diff)
downloadwallet-core-8ad36d89f55783c34043ee9ef37759cd94bcec7c.tar.xz
simplify pending transactions, make more tests pass again
Diffstat (limited to 'packages/taler-wallet-core/src/util/retries.ts')
-rw-r--r--packages/taler-wallet-core/src/util/retries.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/taler-wallet-core/src/util/retries.ts b/packages/taler-wallet-core/src/util/retries.ts
index 54bb0b2ee..a7f4cd281 100644
--- a/packages/taler-wallet-core/src/util/retries.ts
+++ b/packages/taler-wallet-core/src/util/retries.ts
@@ -81,10 +81,11 @@ export function initRetryInfo(
retryCounter: 0,
};
}
+ const now = getTimestampNow();
const info = {
- firstTry: getTimestampNow(),
+ firstTry: now,
active: true,
- nextRetry: { t_ms: 0 },
+ nextRetry: now,
retryCounter: 0,
};
updateRetryInfoTimeout(info, p);