From 7a062f952539feeb8b6776f3236046c079944e0d Mon Sep 17 00:00:00 2001 From: supersuryaansh Date: Fri, 19 Jun 2026 14:55:36 +0530 Subject: [PATCH 1/4] add more suspension logs --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 2910281..d5744dc 100644 --- a/index.js +++ b/index.js @@ -348,9 +348,10 @@ class Corestore extends ReadyResource { } async suspend({ log = noop } = {}) { - await log('Flushing db...') + await log('Corestore suspension started...') // If readOnly we don't need to flush if (!this.storage.readOnly) { + await log('Flusing db...') await this.storage.db.flush() await log('Flusing db completed') } From 1dd0b53bf573b6b5df3a441c6d1a32c16e88b664 Mon Sep 17 00:00:00 2001 From: supersuryaansh Date: Thu, 25 Jun 2026 11:33:40 +0530 Subject: [PATCH 2/4] fix typos --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index d5744dc..b9768d2 100644 --- a/index.js +++ b/index.js @@ -348,12 +348,12 @@ class Corestore extends ReadyResource { } async suspend({ log = noop } = {}) { - await log('Corestore suspension started...') + await log('Suspension requested.') // If readOnly we don't need to flush if (!this.storage.readOnly) { - await log('Flusing db...') + await log('Flushing db...') await this.storage.db.flush() - await log('Flusing db completed') + await log('Flushing db completed') } if (!this.shouldSuspend) return await log('Suspending db...') From 4a3308db82aaa88ff49ecd1d10dd5d6e85b6c728 Mon Sep 17 00:00:00 2001 From: supersuryaansh Date: Thu, 25 Jun 2026 11:34:39 +0530 Subject: [PATCH 3/4] keep corestore prefix --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index b9768d2..be47ebc 100644 --- a/index.js +++ b/index.js @@ -348,7 +348,7 @@ class Corestore extends ReadyResource { } async suspend({ log = noop } = {}) { - await log('Suspension requested.') + await log('Corestore suspension requested.') // If readOnly we don't need to flush if (!this.storage.readOnly) { await log('Flushing db...') From af25abfc2abefc7472be477f1a9c948b0c3cf10e Mon Sep 17 00:00:00 2001 From: supersuryaansh Date: Fri, 26 Jun 2026 09:02:11 +0530 Subject: [PATCH 4/4] make logs sync --- index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index be47ebc..c3075c6 100644 --- a/index.js +++ b/index.js @@ -348,17 +348,17 @@ class Corestore extends ReadyResource { } async suspend({ log = noop } = {}) { - await log('Corestore suspension requested.') + log('Corestore suspension requested.') // If readOnly we don't need to flush if (!this.storage.readOnly) { - await log('Flushing db...') + log('Flushing db...') await this.storage.db.flush() - await log('Flushing db completed') + log('Flushing db completed') } if (!this.shouldSuspend) return - await log('Suspending db...') + log('Suspending db...') await this.storage.suspend({ log }) - await log('Suspending db completed') + log('Suspending db completed') } resume() {