mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-19 03:04:27 -05:00
perf(net): remove unnecessary collect in transaction propagation (#21831)
Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
@@ -950,12 +950,8 @@ where
|
||||
return
|
||||
};
|
||||
|
||||
let to_propagate = self
|
||||
.pool
|
||||
.get_all(hashes)
|
||||
.into_iter()
|
||||
.map(PropagateTransaction::pool_tx)
|
||||
.collect::<Vec<_>>();
|
||||
let to_propagate =
|
||||
self.pool.get_all(hashes).into_iter().map(PropagateTransaction::pool_tx);
|
||||
|
||||
let mut propagated = PropagatedTransactions::default();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user