perf(net): remove unnecessary collect in transaction propagation (#21831)

Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
Matthias Seitz
2026-02-05 02:39:25 +01:00
committed by GitHub
parent a5978c593e
commit 05ec479398

View File

@@ -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();