Skip to content

Apply review feedback for universal IO gridstore pages - #8230

Merged
generall merged 2 commits into
universal-io-gridstorefrom
universal-io-gridstore-review-fixes
Feb 25, 2026
Merged

generall merged 2 commits into
universal-io-gridstorefrom
universal-io-gridstore-review-fixes

Conversation

@generall

Copy link
Copy Markdown
Member

Summary

Addresses review feedback from #8223:

  • Use use super::Result in mmap.rs instead of fully-qualified crate::universal_io::Result (per @ffuugoo nit)
  • Restructure ValuePointer destructuring in get_value and delete_value to first match Some(pointer), then destructure separately (per @ffuugoo suggestion)

Test plan

  • No functional changes, only code style adjustments
  • CI should pass as before

Made with Cursor

@ffuugoo ffuugoo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

- Use `super::Result` import in mmap.rs instead of fully-qualified `crate::universal_io::Result`
- Restructure ValuePointer destructuring in get_value and delete_value to
  first match Some(pointer), then destructure separately
@generall
generall force-pushed the universal-io-gridstore-review-fixes branch from 0773376 to eae1dac Compare February 25, 2026 16:44
…dstore::iter

Use a trait bound instead of Either to combine callback and gridstore
errors, allowing `?` to work directly on GridstoreError. This simplifies
callers by removing Either matching and io::Error conversion workarounds.
@generall
generall merged commit 7db46b1 into universal-io-gridstore Feb 25, 2026
15 checks passed
@generall
generall deleted the universal-io-gridstore-review-fixes branch February 25, 2026 18:45
generall added a commit that referenced this pull request Feb 25, 2026
* [manunal] Gridstore page use universal IO

* fmt

* Apply review feedback for universal IO gridstore pages (#8230)

* Apply review feedback from PR #8223

- Use `super::Result` import in mmap.rs instead of fully-qualified `crate::universal_io::Result`
- Restructure ValuePointer destructuring in get_value and delete_value to
  first match Some(pointer), then destructure separately

* Replace Either<E, GridstoreError> with E: From<GridstoreError> in Gridstore::iter

Use a trait bound instead of Either to combine callback and gridstore
errors, allowing `?` to work directly on GridstoreError. This simplifies
callers by removing Either matching and io::Error conversion workarounds.

---------

Co-authored-by: qdrant-claw <[email protected]>

---------

Co-authored-by: qdrant-claw <[email protected]>
generall added a commit that referenced this pull request Mar 26, 2026
* [manunal] Gridstore page use universal IO

* fmt

* Apply review feedback for universal IO gridstore pages (#8230)

* Apply review feedback from PR #8223

- Use `super::Result` import in mmap.rs instead of fully-qualified `crate::universal_io::Result`
- Restructure ValuePointer destructuring in get_value and delete_value to
  first match Some(pointer), then destructure separately

* Replace Either<E, GridstoreError> with E: From<GridstoreError> in Gridstore::iter

Use a trait bound instead of Either to combine callback and gridstore
errors, allowing `?` to work directly on GridstoreError. This simplifies
callers by removing Either matching and io::Error conversion workarounds.

---------

Co-authored-by: qdrant-claw <[email protected]>

---------

Co-authored-by: qdrant-claw <[email protected]>
KShivendu pushed a commit that referenced this pull request Mar 30, 2026
* [manunal] Gridstore page use universal IO

* fmt

* Apply review feedback for universal IO gridstore pages (#8230)

* Apply review feedback from PR #8223

- Use `super::Result` import in mmap.rs instead of fully-qualified `crate::universal_io::Result`
- Restructure ValuePointer destructuring in get_value and delete_value to
  first match Some(pointer), then destructure separately

* Replace Either<E, GridstoreError> with E: From<GridstoreError> in Gridstore::iter

Use a trait bound instead of Either to combine callback and gridstore
errors, allowing `?` to work directly on GridstoreError. This simplifies
callers by removing Either matching and io::Error conversion workarounds.

---------

Co-authored-by: qdrant-claw <[email protected]>

---------

Co-authored-by: qdrant-claw <[email protected]>
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