From dce6c641ed2aae239ee5cd3edfa82b35b2952cd0 Mon Sep 17 00:00:00 2001 From: Ewout Stortenbeker <4ewout@gmail.com> Date: Mon, 21 Feb 2022 14:23:13 +0100 Subject: [PATCH] removed invalid .bind call --- src/storage-custom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage-custom.js b/src/storage-custom.js index 4fcd35d..c7d2dfd 100644 --- a/src/storage-custom.js +++ b/src/storage-custom.js @@ -206,7 +206,7 @@ class CustomStorageSettings extends StorageSettings { // Hijack getTransaction to add locking const useLocking = this.locking; - const nodeLocker = useLocking ? new NodeLocker(console.bind(console), this.lockTimeout) : null; + const nodeLocker = useLocking ? new NodeLocker(console, this.lockTimeout) : null; this.getTransaction = async ({ path, write }) => { // console.log(`${write ? 'WRITE' : 'READ'} transaction requested for path "${path}"`) const transaction = await settings.getTransaction({ path, write });