From 1ac56373b6b55db1e13d75286d705536cd3e4665 Mon Sep 17 00:00:00 2001 From: Pravdyvy Date: Fri, 17 Jul 2026 17:44:09 +0300 Subject: [PATCH] fix:(wallet): suggestion 2 --- lez/wallet/src/multi_client.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lez/wallet/src/multi_client.rs b/lez/wallet/src/multi_client.rs index ef4e246f..7a8968fa 100644 --- a/lez/wallet/src/multi_client.rs +++ b/lez/wallet/src/multi_client.rs @@ -119,14 +119,13 @@ impl MultiSequencerClient { }; // If there is statistics for client, actualize it - if statistics.contains_key(sequencer_addr) { + if let Some(metric_mut) = statistics.get_mut(sequencer_addr) { let metric_updates = actualize_client(&sequencer_client).await; log::debug!( "Metered call for {sequencer_addr:?}, metric updates is {metric_updates:?}" ); - let metric_mut = statistics.get_mut(sequencer_addr).unwrap(); metric_mut.apply_updates(&[metric_updates]); // Otherwise calibrate client data } else if let Some(client_statistics) =