-
Notifications
You must be signed in to change notification settings - Fork 2
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
fix: Limit badger iterator seek to iterator bounds #47
fix: Limit badger iterator seek to iterator bounds #47
Conversation
ebdd67b
to
765b33b
Compare
Fixing now, as it is quick, and it gets in the way of the primary change coming in a later commit.
765b33b
to
d1573f2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
badger/iter.go
Outdated
|
||
if !it.i.Valid() { | ||
// `it.i.Next()` will panic if we attempt to call it having already reached | ||
// the iterator end, so we much return before trying to make that call if we can. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: much
-> must
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:) I am introducing way too many typos atm, thanks Keenan
- Fix typo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cheers
Relevant issue(s)
Resolves #38
Resolves #19
Description
Limit badger iterator seek to iterator bounds.
Also fixes a panic when calling badger.Next, and simplifies the badger iterator code.