Skip to content

Commit

Permalink
getwriterbykey already resets isRemoved
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh committed Aug 22, 2024
1 parent ab8e9d0 commit 8ebe38c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1910,8 +1910,6 @@ module.exports = class Autobase extends ReadyResource {
const writer = (await this._getWriterByKey(key, -1, 0, false, true, null)) || this._makeWriter(key, 0, true, false)
await writer.ready()

writer.isRemoved = false // never removed now

if (!this.activeWriters.has(key)) {
this.activeWriters.add(writer)
this._checkWriters.push(writer)
Expand Down

0 comments on commit 8ebe38c

Please sign in to comment.