corestore 7.11.1 → 7.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +0 -6
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -349,12 +349,6 @@ class Corestore extends ReadyResource {
|
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
async suspend({ log = noop } = {}) {
|
|
352
|
-
await log('Flushing db...')
|
|
353
|
-
// If readOnly we don't need to flush
|
|
354
|
-
if (!this.storage.readOnly) {
|
|
355
|
-
await this.storage.db.flush()
|
|
356
|
-
await log('Flusing db completed')
|
|
357
|
-
}
|
|
358
352
|
if (!this.shouldSuspend) return
|
|
359
353
|
await log('Suspending db...')
|
|
360
354
|
await this.storage.suspend({ log })
|