Skip to content

Conversation

@wock9000
Copy link

This pull request updates the Iterator and ReverseIterator functions in the PebbleDB integration to handle an additional return value from the NewIter method. Previously, NewIter was expected to return a single value, the iterator itself. However, a recent update to the underlying Pebble library has modified NewIter to return two values: the iterator and an error.

Changes Made:

  • Modified the Iterator and ReverseIterator functions to capture and check the error returned by NewIter.
  • If an error is returned when calling NewIter, the error is handled appropriately by returning nil for the iterator and propagating the error up to the caller.

This pull request updates the `Iterator` and `ReverseIterator` functions in the PebbleDB integration to handle an additional return value from the `NewIter` method. Previously, `NewIter` was expected to return a single value, the iterator itself. However, a recent update to the underlying Pebble library has modified `NewIter` to return two values: the iterator and an error.

### Changes Made:
- Modified the `Iterator` and `ReverseIterator` functions to capture and check the error returned by `NewIter`.
- If an error is returned when calling `NewIter`, the error is handled appropriately by returning `nil` for the iterator and propagating the error up to the caller.
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.

1 participant