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

update transaction_outputs #20456

Merged
merged 3 commits into from
Jan 7, 2025
Merged

update transaction_outputs #20456

merged 3 commits into from
Jan 7, 2025

Conversation

xiaodi007
Copy link
Contributor

@xiaodi007 xiaodi007 commented Nov 28, 2024

Description

  1. possible_to_receive.iter().clone() -> possible_to_receive.into_iter():

This modification is generally appropriate and improves performance by avoiding unnecessary cloning of the possible_to_receive collection. Instead of cloning, it consumes the iterator, which is more efficient.

  1. .chain(received_objects) -> .chain(received_objects.into_iter()):

By calling into_iter() on received_objects when adding them to locks_to_delete, the objects are directly used in the collection and the original reference to received_objects is no longer necessary.

  1. ** Correct the spelling error in transaction_orchestrator**:

fnished -> finished

Test plan

How did you test the new or updated feature?


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 Nov 28, 2024

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 Jan 7, 2025 3:55am
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Jan 7, 2025 3:55am
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Jan 7, 2025 3:55am
sui-typescript-docs ⬜️ Ignored (Inspect) Visit Preview Jan 7, 2025 3:55am

@amnn amnn requested a review from mystenmark November 29, 2024 10:53
@xiaodi007 xiaodi007 temporarily deployed to sui-typescript-aws-kms-test-env November 29, 2024 17:44 — with GitHub Actions Inactive
@stefan-mysten
Copy link
Contributor

Thanks @xiaodi007 for the change. There's one clippy suggestion that we need to apply to make the CI green.

Copy link
Contributor Author

@xiaodi007 xiaodi007 left a comment

Choose a reason for hiding this comment

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

@stefan-mysten maintain the received_objects without .into_iter(), Thanks a lot !

@xiaodi007
Copy link
Contributor Author

@stefan-mysten Hi, could you please take a look to see if anything else needs to be revised?

@stefan-mysten
Copy link
Contributor

Thanks @xiaodi007. @mlogan is not around this week, so just waiting for him to confirm this is OK and be aware of the needed fix in our dashboard. Give me a bit more time before landing this, thank you!

@xiaodi007
Copy link
Contributor Author

Got it, thanks!

@stefan-mysten stefan-mysten self-assigned this Dec 6, 2024
@stefan-mysten stefan-mysten temporarily deployed to sui-typescript-aws-kms-test-env January 7, 2025 04:00 — with GitHub Actions Inactive
@stefan-mysten stefan-mysten merged commit a0b5616 into MystenLabs:main Jan 7, 2025
47 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.

3 participants