Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update transaction_outputs (MystenLabs#20456)
## 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. 2. **` .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. 3. ** 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: --------- Co-authored-by: stefan-mysten <[email protected]>
- Loading branch information