Skip to content

Commit

Permalink
no need to wait for bump in append anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
chm-diederichs committed Jun 6, 2024
1 parent e589ce0 commit 5ae2be4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -747,12 +747,6 @@ module.exports = class Autobase extends ReadyResource {
throw new Error('Not writable')
}

// make sure all local nodes are processed before continuing
while (!this.closing && this.localWriter.core.length > this.localWriter.length) {
await this.localWriter.waitForSynced()
await this._bump() // make sure its all flushed...
}

if (this._appending === null) this._appending = []

if (Array.isArray(value)) {
Expand Down

0 comments on commit 5ae2be4

Please sign in to comment.