cargo fmt

This commit is contained in:
Godmode Galactus 2023-09-01 16:53:55 +02:00
parent 260a2f104b
commit 50c3b43a8b
No known key found for this signature in database
GPG Key ID: A04142C71ABB0DEA
1 changed files with 6 additions and 8 deletions

View File

@ -2,7 +2,7 @@ use std::time::Duration;
use anyhow::{bail, Context};
use prometheus::core::GenericGauge;
use prometheus::{register_int_gauge, opts, IntCounter, register_int_counter};
use prometheus::{opts, register_int_counter, register_int_gauge, IntCounter};
use solana_lite_rpc_core::block_information_store::BlockInformation;
use solana_lite_rpc_core::data_cache::DataCache;
use solana_lite_rpc_core::streams::{
@ -12,7 +12,6 @@ use solana_lite_rpc_core::AnyhowJoinHandle;
use solana_sdk::commitment_config::CommitmentLevel;
use solana_transaction_status::{TransactionConfirmationStatus, TransactionStatus};
lazy_static::lazy_static! {
static ref NB_CLUSTER_NODES: GenericGauge<prometheus::core::AtomicI64> =
register_int_gauge!(opts!("literpc_nb_cluster_nodes", "Number of cluster nodes in saved")).unwrap();
@ -65,7 +64,6 @@ impl DataCachingService {
CommitmentLevel::Finalized => TransactionConfirmationStatus::Finalized,
CommitmentLevel::Confirmed => TransactionConfirmationStatus::Confirmed,
_ => TransactionConfirmationStatus::Processed,
};
for tx in block.txs {
@ -83,13 +81,13 @@ impl DataCachingService {
match confirmation_status {
TransactionConfirmationStatus::Finalized => {
TXS_FINALIZED.inc();
},
}
TransactionConfirmationStatus::Confirmed => {
TXS_CONFIRMED.inc();
},
}
TransactionConfirmationStatus::Processed => {
TXS_PROCESSED.inc();
},
}
}
}
// notify