hypercore-storage 1.2.1 → 1.2.2
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 +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -287,9 +287,9 @@ class HypercoreStorage {
|
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
class CorestoreStorage {
|
|
290
|
-
constructor (db) {
|
|
290
|
+
constructor (db, opts) {
|
|
291
291
|
this.path = typeof db === 'string' ? db : db.path
|
|
292
|
-
this.rocks = typeof db === 'string' ? new RocksDB(db) : db
|
|
292
|
+
this.rocks = typeof db === 'string' ? new RocksDB(db, opts) : db
|
|
293
293
|
this.db = createColumnFamily(this.rocks)
|
|
294
294
|
this.view = null
|
|
295
295
|
this.enters = 0
|