Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
esemeniuc committed Nov 8, 2023
1 parent f97ca0b commit de77955
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tip-distributor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ pub async fn sign_and_send_transactions_with_retries_multi_rpc(
tokio::spawn(async move {
let mut iterations = 0;
while let Ok(txn) = transactions_receiver.recv() {
let mut retries = 0;
let mut retries = 0usize;
while retries < MAX_RETRIES {
iterations += 1;
let (_signed_txn, res) =
Expand Down Expand Up @@ -1029,7 +1029,7 @@ async fn get_batched_accounts(

async move {
let _permit = semaphore.acquire_owned().await.unwrap(); // wait until our turn
let mut retries = 0;
let mut retries = 0usize;
loop {
match rpc_client.get_multiple_accounts(pubkeys).await {
Ok(accts) => return Ok(accts),
Expand Down

0 comments on commit de77955

Please sign in to comment.