Skip to content

Commit

Permalink
Update mod.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Arindam2407 authored Nov 15, 2023
1 parent 847b057 commit c475832
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/primitives/src/transaction/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use once_cell::sync::Lazy;
use rayon::prelude::*;
use reth_codecs::{add_arbitrary_tests, derive_arbitrary, Compact};
use serde::{Deserialize, Serialize};
use std::{mem, thread, sync::mpsc};
use std::{mem, sync::mpsc, thread};

pub use access_list::{AccessList, AccessListItem};
pub use eip1559::TxEip1559;
Expand Down Expand Up @@ -879,8 +879,8 @@ impl TransactionSignedNoHash {
})
});
thread::spawn(move || {
for mut channel in channels {
while let Some(recovered) = channel.blocking_recv() {
for channel in channels {
while let Ok(recovered) = channel.recv() {
match recovered {
Some(signer) => {
recovered_signers.push(signer);
Expand Down Expand Up @@ -1079,8 +1079,8 @@ impl TransactionSigned {
})
});
thread::spawn(move || {
for mut channel in channels {
while let Some(recovered) = channel.blocking_recv() {
for channel in channels {
while let Ok(recovered) = channel.recv() {
match recovered {
Some(signer) => {
recovered_signers.push(signer);
Expand Down

0 comments on commit c475832

Please sign in to comment.