aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-02-15 23:27:59 +0100
committerFlorian Dold <florian@dold.me>2024-02-15 23:27:59 +0100
commit42a7a31fb2f10c7d3049d35dec331ed4237cc882 (patch)
tree1e2f7b2fb7cb8cfd7fdbec53c2c464909aca7421 /packages/taler-wallet-core
parenta754f92d7018924b858330da878366b89a0b9a65 (diff)
downloadwallet-core-42a7a31fb2f10c7d3049d35dec331ed4237cc882.tar.xz
-logging, reset task retries properly for exchanges
Diffstat (limited to 'packages/taler-wallet-core')
-rw-r--r--packages/taler-wallet-core/src/operations/exchanges.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/taler-wallet-core/src/operations/exchanges.ts b/packages/taler-wallet-core/src/operations/exchanges.ts
index 22be4102a..3f8126dba 100644
--- a/packages/taler-wallet-core/src/operations/exchanges.ts
+++ b/packages/taler-wallet-core/src/operations/exchanges.ts
@@ -137,7 +137,7 @@ const logger = new Logger("exchanges.ts");
function getExchangeRequestTimeout(): Duration {
return Duration.fromSpec({
- seconds: 5,
+ seconds: 15,
});
}
@@ -653,6 +653,8 @@ async function downloadExchangeKeysInfo(
cancellationToken,
});
+ logger.info("got response to /keys request");
+
// We must make sure to parse out the protocol version
// before we validate the body.
// Otherwise the parser might complain with a hard to understand
@@ -907,7 +909,7 @@ async function startUpdateExchangeEntry(
newExchangeState: newExchangeState,
oldExchangeState: oldExchangeState,
});
- ws.taskScheduler.restartShepherdTask(taskId);
+ await ws.taskScheduler.resetTaskRetries(taskId);
}
/**