Skip to content

Commit

Permalink
fix missing arguments to getwriterbykey (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh authored Jun 19, 2024
1 parent c442b53 commit cc5ab76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ module.exports = class AutoStore {
// todo: should initial system entry have bootstrap as indexer?
if (!keys.length) return this.base.linearizer.indexers.slice(0)

return Promise.all(keys.map(({ key }) => this.base._getWriterByKey(key, -1, 0, false, null)))
return Promise.all(keys.map(({ key }) => this.base._getWriterByKey(key, -1, 0, false, false, null)))
}

async getCore (ac, indexers, length, opts = {}) {
Expand Down
2 changes: 1 addition & 1 deletion lib/writer.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ module.exports = class Writer extends ReadyResource {
while (this.node.dependencies.size < this.node.heads.length) {
const rawHead = this.node.heads[this.node.dependencies.size]

const headWriter = await this.base._getWriterByKey(rawHead.key, -1, rawHead.length, true, null)
const headWriter = await this.base._getWriterByKey(rawHead.key, -1, rawHead.length, true, false, null)

if (headWriter !== this && (headWriter === null || headWriter.length < rawHead.length)) {
return false
Expand Down

0 comments on commit cc5ab76

Please sign in to comment.