summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/host-impl.qtart.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-12-18 23:00:33 +0100
committerFlorian Dold <florian@dold.me>2023-12-18 23:00:33 +0100
commitf22f5f89cc99fb0556b956b6432e4817d52378d2 (patch)
tree9998bd4fd0d2b51ba5c27ebe9c2f694134c93841 /packages/taler-wallet-core/src/host-impl.qtart.ts
parent0ba8fe9428dc5779cc98bf4e875f60eb01966323 (diff)
downloadwallet-core-f22f5f89cc99fb0556b956b6432e4817d52378d2.tar.gz
wallet-core-f22f5f89cc99fb0556b956b6432e4817d52378d2.tar.bz2
wallet-core-f22f5f89cc99fb0556b956b6432e4817d52378d2.zip
wallet-core: update exchange inline, not in task
A task (such as refresh) can't wait until the exchange update task updates the exchange, as task handlers don't run concurrently. The previous behavior caused some transactions to block indefinitely when waiting for an updated exchange entry.
Diffstat (limited to 'packages/taler-wallet-core/src/host-impl.qtart.ts')
-rw-r--r--packages/taler-wallet-core/src/host-impl.qtart.ts11
1 files changed, 5 insertions, 6 deletions
diff --git a/packages/taler-wallet-core/src/host-impl.qtart.ts b/packages/taler-wallet-core/src/host-impl.qtart.ts
index 686374beb..0fc346b44 100644
--- a/packages/taler-wallet-core/src/host-impl.qtart.ts
+++ b/packages/taler-wallet-core/src/host-impl.qtart.ts
@@ -30,20 +30,19 @@ import type {
} from "@gnu-taler/idb-bridge";
// eslint-disable-next-line no-duplicate-imports
import {
+ AccessStats,
BridgeIDBFactory,
MemoryBackend,
createSqliteBackend,
shimIndexedDB,
} from "@gnu-taler/idb-bridge";
-import { AccessStats } from "@gnu-taler/idb-bridge";
-import { SynchronousCryptoWorkerFactoryPlain } from "./crypto/workers/synchronousWorkerFactoryPlain.js";
-import { openTalerDatabase } from "./index.js";
-import { Logger, enableNativeLogging } from "@gnu-taler/taler-util";
+import { Logger } from "@gnu-taler/taler-util";
import { createPlatformHttpLib } from "@gnu-taler/taler-util/http";
-import { SetTimeoutTimerAPI } from "./util/timer.js";
-import { Wallet } from "./wallet.js";
import { qjsOs, qjsStd } from "@gnu-taler/taler-util/qtart";
+import { SynchronousCryptoWorkerFactoryPlain } from "./crypto/workers/synchronousWorkerFactoryPlain.js";
import { DefaultNodeWalletArgs, makeTempfileId } from "./host-common.js";
+import { SetTimeoutTimerAPI } from "./util/timer.js";
+import { Wallet } from "./wallet.js";
const logger = new Logger("host-impl.qtart.ts");