From dd180b771d3a356745e37c352c789b79650844da Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 7 Nov 2024 13:50:51 +0100 Subject: [PATCH] chore: fmt --- state-chain/custom-rpc/src/monitoring.rs | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/state-chain/custom-rpc/src/monitoring.rs b/state-chain/custom-rpc/src/monitoring.rs index fe87b5e337..c09fbc4bd0 100644 --- a/state-chain/custom-rpc/src/monitoring.rs +++ b/state-chain/custom-rpc/src/monitoring.rs @@ -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 { @@ -125,7 +130,7 @@ where at: Option, ) -> RpcResult { self.with_runtime_api(at, |api, hash| { - if api.api_version::< dyn Core >(hash).unwrap().unwrap() < 2 { + if api.api_version::>(hash).unwrap().unwrap() < 2 { let old_result = api.cf_monitoring_data_before_version_2(hash)?; Ok(old_result.into()) } else {