hypercore-storage 2.1.0 → 2.1.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 +0 -13
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -464,19 +464,6 @@ class CorestoreStorage {
|
|
|
464
464
|
return this.db.closed
|
|
465
465
|
}
|
|
466
466
|
|
|
467
|
-
async _openDeviceFile() {
|
|
468
|
-
if ((this.bootstrap && !this.readOnly && !this.allowBackup) || this.wait) {
|
|
469
|
-
const corestoreFile = path.join(this.path, 'CORESTORE')
|
|
470
|
-
|
|
471
|
-
this.deviceFile = new DeviceFile(corestoreFile, {
|
|
472
|
-
wait: this.wait,
|
|
473
|
-
data: { id: this.id }
|
|
474
|
-
})
|
|
475
|
-
|
|
476
|
-
await this.deviceFile.ready()
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
|
|
480
467
|
async ready() {
|
|
481
468
|
if (this.version === 0) await this._migrateStore()
|
|
482
469
|
return this.db.ready()
|