Skip to content

Assert SessionStates are aligned when committing and flushing#784

Merged
lejeunerenard merged 6 commits intomainfrom
only-commit-to-parent
Mar 11, 2026
Merged

Assert SessionStates are aligned when committing and flushing#784
lejeunerenard merged 6 commits intomainfrom
only-commit-to-parent

Conversation

@chm-diederichs
Copy link
Contributor

No description provided.

@chm-diederichs
Copy link
Contributor Author

depends on: holepunchto/hypercore-storage#105

return true
}

async _precommit(state) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sync


if (atom) {
this.atomized = atom
atom.onflush(this._precommit.bind(this, state))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

preflush?

@lejeunerenard lejeunerenard merged commit 7db4aa2 into main Mar 11, 2026
2 of 5 checks passed
@lejeunerenard lejeunerenard deleted the only-commit-to-parent branch March 11, 2026 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants