gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated (3d2b7b2a -> 2d4a53f5)


From: gnunet
Subject: [taler-wallet-core] branch master updated (3d2b7b2a -> 2d4a53f5)
Date: Wed, 09 Jun 2021 16:20:56 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a change to branch master
in repository wallet-core.

    from 3d2b7b2a formatting: re-run prettier
     new 029b07be imports
     new 2d4a53f5 return transaction context

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 packages/taler-wallet-core/src/db.ts         | 12 +-----------
 packages/taler-wallet-core/src/util/query.ts | 17 +----------------
 2 files changed, 2 insertions(+), 27 deletions(-)

diff --git a/packages/taler-wallet-core/src/db.ts 
b/packages/taler-wallet-core/src/db.ts
index 2754fd34..14f61c8d 100644
--- a/packages/taler-wallet-core/src/db.ts
+++ b/packages/taler-wallet-core/src/db.ts
@@ -8,13 +8,7 @@ import {
   StoreWithIndexes,
   IndexDescriptor,
 } from "./util/query";
-import {
-  IDBFactory,
-  IDBDatabase,
-  IDBObjectStore,
-  IDBTransaction,
-  IDBObjectStoreParameters,
-} from "@gnu-taler/idb-bridge";
+import { IDBFactory, IDBDatabase, IDBTransaction } from 
"@gnu-taler/idb-bridge";
 import { Logger } from "@gnu-taler/taler-util";
 import {
   AmountJson,
@@ -1516,10 +1510,6 @@ export interface RecoupGroupRecord {
   lastError: TalerErrorDetails | undefined;
 }
 
-export enum ImportPayloadType {
-  CoreSchema = "core-schema",
-}
-
 export enum BackupProviderStatus {
   PaymentRequired = "payment-required",
   Ready = "ready",
diff --git a/packages/taler-wallet-core/src/util/query.ts 
b/packages/taler-wallet-core/src/util/query.ts
index 2cb0c7fe..ab5a1fc7 100644
--- a/packages/taler-wallet-core/src/util/query.ts
+++ b/packages/taler-wallet-core/src/util/query.ts
@@ -77,22 +77,6 @@ function requestToPromise(req: IDBRequest): Promise<any> {
   });
 }
 
-function transactionToPromise(tx: IDBTransaction): Promise<void> {
-  const stack = Error("Failed transaction was started here.");
-  return new Promise((resolve, reject) => {
-    tx.onabort = () => {
-      reject(TransactionAbort);
-    };
-    tx.oncomplete = () => {
-      resolve();
-    };
-    tx.onerror = () => {
-      console.error("Transaction failed:", stack);
-      reject(tx.error);
-    };
-  });
-}
-
 type CursorResult<T> = CursorEmptyResult<T> | CursorValueResult<T>;
 
 interface CursorEmptyResult<T> {
@@ -548,6 +532,7 @@ function makeWriteContext(
       },
     };
   }
+  return ctx;
 }
 
 /**

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]