mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 05:47:58 +00:00
allow re-use and avoid compiling kusama parachain code (#5792)
* allow re-use and avoid compiling kusama parachain code * fixup removed trailing ; * make it compat with rustfmt +nightly
This commit is contained in:
committed by
GitHub
parent
72bde2889f
commit
26fa161ece
@@ -248,12 +248,19 @@ macro_rules! unwrap_client {
|
||||
fn host_perf_check() -> Result<()> {
|
||||
#[cfg(not(build_type = "release"))]
|
||||
{
|
||||
Err(PerfCheckError::WrongBuildType.into())
|
||||
return Err(PerfCheckError::WrongBuildType.into())
|
||||
}
|
||||
#[cfg(build_type = "release")]
|
||||
{
|
||||
crate::host_perf_check::host_perf_check()?;
|
||||
Ok(())
|
||||
#[cfg(not(feature = "hostperfcheck"))]
|
||||
{
|
||||
return Err(PerfCheckError::FeatureNotEnabled { feature: "hostperfcheck" }.into())
|
||||
}
|
||||
#[cfg(feature = "hostperfcheck")]
|
||||
{
|
||||
crate::host_perf_check::host_perf_check()?;
|
||||
return Ok(())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user