From de7795571a67f7435cf275106eb399015625c2b7 Mon Sep 17 00:00:00 2001 From: Eric Semeniuc <3838856+esemeniuc@users.noreply.github.com> Date: Wed, 8 Nov 2023 04:31:22 -0800 Subject: [PATCH] fix --- tip-distributor/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tip-distributor/src/lib.rs b/tip-distributor/src/lib.rs index 07a6e45493..6d184d8442 100644 --- a/tip-distributor/src/lib.rs +++ b/tip-distributor/src/lib.rs @@ -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) = @@ -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),