Skip to content

Commit

Permalink
explicitly copy dependency data
Browse files Browse the repository at this point in the history
  • Loading branch information
chm-diederichs committed Dec 12, 2024
1 parent 8d9510f commit f436752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ class HypercoreStorage {
assert(this.destroyed === false)
const s = new HypercoreStorage(this.root, this.discoveryKey, this.corePointer, this.dataPointer, this.db.snapshot())

for (const dep of this.dependencies) s.dependencies.push(dep)
for (const { data, length } of this.dependencies) s.dependencies.push({ data, length })

return s
}
Expand Down

0 comments on commit f436752

Please sign in to comment.