corestore 7.4.0 → 7.4.1
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 +4 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -286,9 +286,12 @@ class Corestore extends ReadyResource {
|
|
|
286
286
|
return auditStore(this, opts)
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
-
async suspend () {
|
|
289
|
+
async suspend ({ log = noop } = {}) {
|
|
290
|
+
log('Flushing db...')
|
|
290
291
|
await this.storage.db.flush()
|
|
292
|
+
log('Suspending db...')
|
|
291
293
|
await this.storage.db.suspend()
|
|
294
|
+
log('Corestore suspended')
|
|
292
295
|
}
|
|
293
296
|
|
|
294
297
|
resume () {
|