Skip to content

sui_v1.41.0_1736245531_ci

@xiaodi007 xiaodi007 tagged this 07 Jan 06:29
## 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 <135084671+stefan-mysten@users.noreply.github.com>
Assets 2
Loading