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

[typed store] iterators: migrate unbounded_iter callsites #21358

Merged
merged 1 commit into from
Mar 10, 2025

Conversation

phoenix-o
Copy link
Contributor

Description

  • migrates unbounded_iter call sites to safe_iter
  • removes unused range_iter method
  • deprecates iterator_cf method

Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • Protocol:
  • Nodes (Validators and Full nodes):
  • gRPC:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:

Copy link

vercel bot commented Feb 26, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 10, 2025 2:35pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Mar 10, 2025 2:35pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Mar 10, 2025 2:35pm

@phoenix-o phoenix-o temporarily deployed to sui-typescript-aws-kms-test-env February 26, 2025 15:16 — with GitHub Actions Inactive
@phoenix-o phoenix-o force-pushed the db_iterators_interface_sf branch from 365ae8f to d3b821a Compare February 26, 2025 15:23
@phoenix-o phoenix-o temporarily deployed to sui-typescript-aws-kms-test-env February 26, 2025 15:23 — with GitHub Actions Inactive
@phoenix-o phoenix-o force-pushed the db_iterators_interface_sf branch from d3b821a to 0638df7 Compare February 26, 2025 15:45
@phoenix-o phoenix-o temporarily deployed to sui-typescript-aws-kms-test-env February 26, 2025 15:45 — with GitHub Actions Inactive
@phoenix-o phoenix-o force-pushed the db_iterators_interface_sf branch from 0638df7 to c10efb8 Compare February 26, 2025 15:51
@phoenix-o phoenix-o temporarily deployed to sui-typescript-aws-kms-test-env February 26, 2025 15:51 — with GitHub Actions Inactive
@phoenix-o phoenix-o requested a review from andll February 26, 2025 21:55
@phoenix-o phoenix-o marked this pull request as ready for review February 27, 2025 02:30
@phoenix-o phoenix-o temporarily deployed to sui-typescript-aws-kms-test-env February 27, 2025 02:30 — with GitHub Actions Inactive
@phoenix-o phoenix-o force-pushed the db_iterators_interface_sf branch from c10efb8 to c66b286 Compare March 6, 2025 16:03
@phoenix-o phoenix-o temporarily deployed to sui-typescript-aws-kms-test-env March 6, 2025 16:03 — with GitHub Actions Inactive
@phoenix-o phoenix-o marked this pull request as draft March 6, 2025 16:04
@phoenix-o phoenix-o marked this pull request as ready for review March 6, 2025 16:36
@phoenix-o phoenix-o temporarily deployed to sui-typescript-aws-kms-test-env March 6, 2025 16:36 — with GitHub Actions Inactive
@andll andll requested a review from sadhansood March 6, 2025 19:26
Copy link
Contributor

@andll andll left a comment

Choose a reason for hiding this comment

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

It seems that with this diff we changed bunch of functions to return SuiResult only to call .expect() on that result - it probably makes sense to instead just call '.expect()` right away where safe iterator is used, since storage error is not really actionable anywhere in sui.
But I'll leave it up to you.

@phoenix-o phoenix-o force-pushed the db_iterators_interface_sf branch from c66b286 to 6e5f420 Compare March 10, 2025 14:33
@phoenix-o phoenix-o temporarily deployed to sui-typescript-aws-kms-test-env March 10, 2025 14:34 — with GitHub Actions Inactive
@phoenix-o phoenix-o merged commit ab6eaa1 into MystenLabs:main Mar 10, 2025
42 of 43 checks passed
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