Skip to content

Commit

Permalink
feat: use cfg_iter_mut instead of par_iter_mut
Browse files Browse the repository at this point in the history
Signed-off-by: ljedrz <ljedrz@gmail.com>
  • Loading branch information
ljedrz committed Mar 6, 2024
1 parent 8f39e38 commit fc66ecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/bft/src/primary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ impl<N: Network> Primary<N> {
let mut transmissions = self.sync_with_batch_header_from_peer(peer_ip, &batch_header).await?;

// Check that the transmission ids match and are not fee transactions.
if let Err(err) = transmissions.par_iter_mut().try_for_each(|(transmission_id, transmission)| {
if let Err(err) = cfg_iter_mut!(transmissions).try_for_each(|(transmission_id, transmission)| {
// If the transmission is not well-formed, then return early.
self.ledger.ensure_transmission_is_well_formed(*transmission_id, transmission)
}) {
Expand Down

0 comments on commit fc66ecf

Please sign in to comment.