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) =