Skip to content

Commit

Permalink
fix: fix core storage initialization in MapeoManager
Browse files Browse the repository at this point in the history
  • Loading branch information
achou11 committed Nov 8, 2023
1 parent 0444a0b commit c5825f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mapeo-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ export class MapeoManager {

if (typeof coreStorage === 'string') {
const pool = new RandomAccessFilePool(MAX_FILE_DESCRIPTORS)
// @ts-ignore
this.#coreStorage = Hypercore.createStorage(coreStorage, { pool })
// @ts-expect-error
this.#coreStorage = Hypercore.defaultStorage(coreStorage, { pool })
} else {
this.#coreStorage = coreStorage
}
Expand Down

0 comments on commit c5825f0

Please sign in to comment.