Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Fix snapshots #68

Merged
merged 3 commits into from
May 23, 2018
Merged

Fix snapshots #68

merged 3 commits into from
May 23, 2018

Conversation

vweevers
Copy link
Member

Closes #63, closes #61, closes #43, also tackles #42, supersedes #51.

At a later time, we can add an option that favors backpressure over snapshot guarantees, by reading lazily from multiple successive cursors.

@vweevers vweevers requested a review from ralphtheninja May 23, 2018 11:48
@vweevers
Copy link
Member Author

@ralphtheninja I just realized: maybe we should work in a v3 branch first?

@ralphtheninja
Copy link
Member

@ralphtheninja I just realized: maybe we should work in a v3 branch first?

I have no strong opinions about it since master will become 3.0.0. But if you want to do it, lets do it.

@vweevers
Copy link
Member Author

Nah it's fine :)

iterator.js Outdated
Iterator.prototype._next = function (callback) {
// TODO: can remove this after upgrading abstract-leveldown
if (!callback) return new Error('next() requires a callback argument')
Copy link
Member

Choose a reason for hiding this comment

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

Returning an error looks a bit odd, shouldn't it throw?

Copy link
Member Author

Choose a reason for hiding this comment

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

Woa, dunno why I missed that 😄

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a cache to Iterator Get current tests passing snapshots seem not to work
2 participants