mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 18:07:58 +00:00
Disable hostperfcheck by default (#6640)
This feature should only be activated by the polkadot binary. Otherwise parachains may accidentally activate this feature.
This commit is contained in:
@@ -29,6 +29,7 @@ pub enum Error {
|
||||
SubstrateTracing(#[from] sc_tracing::logging::Error),
|
||||
|
||||
#[error(transparent)]
|
||||
#[cfg(feature = "hostperfcheck")]
|
||||
PerfCheck(#[from] polkadot_performance_test::PerfCheckError),
|
||||
|
||||
#[cfg(not(feature = "pyroscope"))]
|
||||
@@ -53,4 +54,7 @@ pub enum Error {
|
||||
|
||||
#[error("Other: {0}")]
|
||||
Other(String),
|
||||
|
||||
#[error("This subcommand is only available when compiled with `{feature}`")]
|
||||
FeatureNotEnabled { feature: &'static str },
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user