Skip to content

Commit

Permalink
refresh system state once
Browse files Browse the repository at this point in the history
  • Loading branch information
chm-diederichs committed Sep 19, 2024
1 parent 2af71b8 commit e8739ab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1825,7 +1825,7 @@ module.exports = class Autobase extends ReadyResource {
else if (migrated) await view.migrateTo(indexers, 0)
}

await this.system.update()
await this._refreshSystemState()

if (this.localWriter) {
if (localLength < 0) this._unsetLocalWriter()
Expand All @@ -1834,7 +1834,6 @@ module.exports = class Autobase extends ReadyResource {

await this._makeLinearizer(this.system)
await this._advanceBootRecord(length)
await this._refreshSystemState()

// manually set the digest
if (migrated) {
Expand Down

0 comments on commit e8739ab

Please sign in to comment.