[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 03/03: unlockBackup was not unlocking: not updating
From: |
gnunet |
Subject: |
[taler-wallet-core] 03/03: unlockBackup was not unlocking: not updating when backup state is ready also nextBackupTimestap = now tries to backup in a loop |
Date: |
Fri, 21 Oct 2022 16:08:22 +0200 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository wallet-core.
commit 5ba7956f49675bf961894ad9e6e9f074c2edca07
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Fri Oct 21 11:08:10 2022 -0300
unlockBackup was not unlocking: not updating when backup state is ready
also nextBackupTimestap = now tries to backup in a loop
---
.../taler-wallet-core/src/operations/pay-merchant.ts | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/packages/taler-wallet-core/src/operations/pay-merchant.ts
b/packages/taler-wallet-core/src/operations/pay-merchant.ts
index baf520c5b..70ca0981f 100644
--- a/packages/taler-wallet-core/src/operations/pay-merchant.ts
+++ b/packages/taler-wallet-core/src/operations/pay-merchant.ts
@@ -891,12 +891,18 @@ async function unblockBackup(
await tx.backupProviders.indexes.byPaymentProposalId
.iter(proposalId)
.forEachAsync(async (bp) => {
- if (bp.state.tag === BackupProviderStateTag.Retrying) {
- bp.state = {
- tag: BackupProviderStateTag.Ready,
- nextBackupTimestamp: TalerProtocolTimestamp.now(),
- };
- }
+ // if (bp.state.tag === BackupProviderStateTag.Retrying) {
+ bp.state = {
+ tag: BackupProviderStateTag.Ready,
+ nextBackupTimestamp: AbsoluteTime.toTimestamp(
+ AbsoluteTime.addDuration(
+ AbsoluteTime.now(),
+ Duration.fromSpec({ days: 7 }),
+ ),
+ ),
+ };
+ // }
+ tx.backupProviders.put(bp);
});
});
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.