From 8389f060c46cd05074731049d80fd5b3d59d92c6 Mon Sep 17 00:00:00 2001 From: Pravdyvy Date: Mon, 27 Jul 2026 16:14:03 +0300 Subject: [PATCH] fix(wallet): suggestions 2 --- lez/wallet/src/multi_client.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lez/wallet/src/multi_client.rs b/lez/wallet/src/multi_client.rs index b248cc53..84cff2ee 100644 --- a/lez/wallet/src/multi_client.rs +++ b/lez/wallet/src/multi_client.rs @@ -13,7 +13,6 @@ use anyhow::{Context as _, Result}; use common::{HashType, transaction::LeeTransaction}; use itertools::Itertools as _; use lee_core::BlockId; -use log::warn; use sequencer_service_rpc::{RpcClient as _, SequencerClient, SequencerClientBuilder}; use serde::{Deserialize, Serialize}; use tokio::{sync::RwLock, task::JoinSet}; @@ -342,7 +341,7 @@ impl MultiSequencerClient { while let Some(resp) = join_set.join_next().await { let res = resp - .inspect_err(|j_err| warn!("Task failed with join error: {j_err:?}")) + .inspect_err(|j_err| log::warn!("Task failed with join error: {j_err:?}")) .map_err(Into::into) .and_then(|((resp, statistics_update), leader_url)| { log::debug!( @@ -599,10 +598,10 @@ async fn multi_calibrate_clients( statistics } -#[must_use] /// Choosing leaders up to a `distribution_limit`. /// /// Assumes that all clients have their statistics in `statistics`. +#[must_use] fn choose_leaders( client_vec: Vec<(Url, SequencerClient)>, statistics: &HashMap,