Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch extends from ReadyResource #123

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Batch extends from ReadyResource #123

wants to merge 1 commit into from

Conversation

LuKks
Copy link
Contributor

@LuKks LuKks commented Jun 19, 2023

Good for Batch to match same API properties as Hyperbee. More importantly, it allows to precisely check if resources (batch, etc) are actually closed in Hyperdrive tests

return this._appendBatch(batch)
await this._appendBatch(batch)

return this.close()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This also fixes a potential bug that Hans pointed out, it closes this:

if (this.isSnapshot) return this._closeSnapshot()

Copy link
Contributor

Choose a reason for hiding this comment

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

Its never a snap when appending

@mafintosh
Copy link
Contributor

Prop a good idea! I'll leave this open, cause I wanna use this oppurtunity to clean up the clean up of the session which is all over the place atm

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.

2 participants