mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-07-23 06:09:31 +00:00
fix:(wallet): suggestion 2
This commit is contained in:
parent
b3810ff77d
commit
1ac56373b6
@ -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) =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user