From 738f3f495785770c7eed3c2f9e0fbddcdb26ea7c Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 26 Mar 2024 12:13:06 +0100 Subject: -minor db optimiations, logging --- packages/taler-wallet-core/src/wallet.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'packages/taler-wallet-core/src/wallet.ts') diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index 1602eb158..e973f11e4 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -46,6 +46,7 @@ import { NotificationType, ObservabilityContext, ObservabilityEventType, + ObservableHttpClientLibrary, OpenedPromise, PartialWalletRunConfig, PrepareWithdrawExchangeRequest, @@ -144,7 +145,6 @@ import { parseTalerUri, sampleWalletCoreTransactions, setDangerousTimetravel, - ObservableHttpClientLibrary, validateIban, } from "@gnu-taler/taler-util"; import type { HttpRequestLibrary } from "@gnu-taler/taler-util/http"; @@ -521,9 +521,9 @@ async function dumpCoins(wex: WalletExecutionContext): Promise { ageCommitmentProof: c.ageCommitmentProof, spend_allocation: c.spendAllocation ? { - amount: c.spendAllocation.amount, - id: c.spendAllocation.id, - } + amount: c.spendAllocation.amount, + id: c.spendAllocation.id, + } : undefined, }); } @@ -691,7 +691,7 @@ async function dispatchRequestInternal( case WalletApiOperation.InitWallet: { const req = codecForInitRequest().decode(payload); - logger.info(`init request: ${req}`); + logger.info(`init request: ${j2s(req)}`); if (wex.ws.initCalled) { logger.warn( @@ -1526,7 +1526,7 @@ async function handleCoreApiRequest( wex = getObservedWalletExecutionContext(ws, CancellationToken.CONTINUE, oc); } else { oc = { - observe(evt) { }, + observe(evt) {}, }; wex = getNormalWalletExecutionContext(ws, CancellationToken.CONTINUE, oc); } -- cgit v1.2.3