Unverified Commit a05e2ef3 authored by Andronik Ordian's avatar Andronik Ordian Committed by GitHub
Browse files

small cleanup after #2518 (#2527)

parent f4c533ac
Pipeline #125810 passed with stages
in 33 minutes and 12 seconds
......@@ -417,13 +417,8 @@ where
use polkadot_statement_distribution::StatementDistribution as StatementDistributionSubsystem;
use polkadot_availability_recovery::AvailabilityRecoverySubsystem;
use polkadot_approval_distribution::ApprovalDistribution as ApprovalDistributionSubsystem;
#[cfg(feature = "real-overseer")]
use polkadot_node_core_approval_voting::ApprovalVotingSubsystem;
#[cfg(not(feature = "real-overseer"))]
let _ = approval_voting_config; // silence.
let all_subsystems = AllSubsystems {
availability_distribution: AvailabilityDistributionSubsystem::new(
keystore.clone(),
......@@ -498,13 +493,10 @@ where
approval_distribution: ApprovalDistributionSubsystem::new(
Metrics::register(registry)?,
),
#[cfg(feature = "real-overseer")]
approval_voting: ApprovalVotingSubsystem::with_config(
approval_voting_config,
keystore.clone(),
)?,
#[cfg(not(feature = "real-overseer"))]
approval_voting: polkadot_subsystem::DummySubsystem,
};
Overseer::new(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment