Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dandanlen committed Nov 7, 2024
1 parent 81fc830 commit dd180b7
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions state-chain/custom-rpc/src/monitoring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,16 @@ use jsonrpsee::proc_macros::rpc;
use sc_client_api::{BlockchainEvents, HeaderBackend};
use sp_api::{ApiExt, Core};
use sp_core::{bounded_vec::BoundedVec, ConstU32};
use state_chain_runtime::{self, Block, chainflip::Offence, monitoring_apis::{
ActivateKeysBroadcastIds, AuthoritiesInfo, BtcUtxos, EpochState, ExternalChainsBlockHeight,
LastRuntimeUpgradeInfo, MonitoringRuntimeApi, OpenDepositChannels, PendingBroadcasts,
PendingTssCeremonies, RedemptionsInfo, SolanaNonces,
}};
use state_chain_runtime::{
self,
chainflip::Offence,
monitoring_apis::{
ActivateKeysBroadcastIds, AuthoritiesInfo, BtcUtxos, EpochState, ExternalChainsBlockHeight,
LastRuntimeUpgradeInfo, MonitoringRuntimeApi, OpenDepositChannels, PendingBroadcasts,
PendingTssCeremonies, RedemptionsInfo, SolanaNonces,
},
Block,
};

#[rpc(server, client, namespace = "cf_monitoring")]
pub trait MonitoringApi {
Expand Down Expand Up @@ -125,7 +130,7 @@ where
at: Option<state_chain_runtime::Hash>,
) -> RpcResult<RpcMonitoringData> {
self.with_runtime_api(at, |api, hash| {
if api.api_version::< dyn Core<Block> >(hash).unwrap().unwrap() < 2 {
if api.api_version::<dyn Core<Block>>(hash).unwrap().unwrap() < 2 {
let old_result = api.cf_monitoring_data_before_version_2(hash)?;
Ok(old_result.into())
} else {
Expand Down

0 comments on commit dd180b7

Please sign in to comment.