diff options
author | Florian Dold <florian@dold.me> | 2022-10-05 18:31:56 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-10-05 18:31:56 +0200 |
commit | 957f9a5efb26194a7911cdaf722502ba09e5bd58 (patch) | |
tree | d7edfb20814d8f9cf418457de0a3ff86c7690308 /packages/taler-wallet-core/src/operations/withdraw.ts | |
parent | 99ace8b7d24416f2b184d66006c89b61935e132e (diff) | |
download | wallet-core-957f9a5efb26194a7911cdaf722502ba09e5bd58.tar.xz |
wallet-core: fix default auditor/exchange loading logic
Diffstat (limited to 'packages/taler-wallet-core/src/operations/withdraw.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/withdraw.ts | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts index 143f9ce33..d768bbeb2 100644 --- a/packages/taler-wallet-core/src/operations/withdraw.ts +++ b/packages/taler-wallet-core/src/operations/withdraw.ts @@ -1071,7 +1071,7 @@ export async function processWithdrawalGroup( case WithdrawalGroupStatus.QueryingStatus: { const doQueryAsync = async () => { if (ws.stopped) { - logger.info("not long-polling reserve, wallet already stopped"); + logger.trace("not long-polling reserve, wallet already stopped"); await storeOperationPending(ws, retryTag); return; } @@ -1080,7 +1080,7 @@ export async function processWithdrawalGroup( try { ws.activeLongpoll[retryTag] = { cancel: () => { - logger.info("cancel of reserve longpoll requested"); + logger.trace("cancel of reserve longpoll requested"); cts.cancel(); }, }; @@ -1094,16 +1094,13 @@ export async function processWithdrawalGroup( return; } delete ws.activeLongpoll[retryTag]; - logger.info( - `active longpoll keys (2) ${Object.keys(ws.activeLongpoll)}`, - ); if (!res.ready) { await storeOperationPending(ws, retryTag); } ws.latch.trigger(); }; doQueryAsync(); - logger.info( + logger.trace( "returning early from withdrawal for long-polling in background", ); return { @@ -1918,12 +1915,12 @@ export async function acceptWithdrawalFromUri( ); } - // Start withdrawal in the background. - await processWithdrawalGroup(ws, withdrawalGroupId, { forceNow: true }).catch( - (err) => { - logger.error("Processing withdrawal (after creation) failed:", err); - }, - ); + // Start withdrawal in the background + processWithdrawalGroup(ws, withdrawalGroupId, { + forceNow: true, + }).catch((err) => { + logger.error("Processing withdrawal (after creation) failed:", err); + }); return { reservePub: withdrawalGroup.reservePub, |