Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 committed Mar 19, 2024
1 parent cd30432 commit 7b89cc5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
7 changes: 3 additions & 4 deletions crates/erc20_payment_lib/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -591,9 +591,9 @@ impl PaymentRuntime {

for account in lock_shared_state.accounts.iter() {
for jh in account.jh.lock().unwrap().iter().flatten() {
if !jh.is_finished() {
return true;
}
if !jh.is_finished() {
return true;
}
}
}
false
Expand Down Expand Up @@ -659,7 +659,6 @@ impl PaymentRuntime {
options.clone(),
);
payment_account.jh.lock().as_mut().unwrap().push(Some(jh));

}
sh.accounts.push(payment_account);

Expand Down
7 changes: 4 additions & 3 deletions crates/erc20_payment_lib/src/sender/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,10 @@ pub async fn process_transactions(

let mut current_wait_time_no_gas_token: f64 = 0.0;
loop {
let mut trans_option = get_next_transaction(conn, chain_id, &format!("{:#x}", signer_account.address))
.await
.map_err(err_from!())?;
let mut trans_option =
get_next_transaction(conn, chain_id, &format!("{:#x}", signer_account.address))
.await
.map_err(err_from!())?;

let Some(tx) = trans_option.as_mut() else {
log::debug!("No transactions to process, breaking from loop");
Expand Down
2 changes: 1 addition & 1 deletion crates/erc20_payment_lib/src/signer/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl SignerAccount {
if !jh.is_finished() {
return true;
}
}
}
}
false
}
Expand Down

0 comments on commit 7b89cc5

Please sign in to comment.