Revert "remove connected disconnected state only (#3868)" (#3896)

This reverts commit 5f637c510e.
This commit is contained in:
Bernhard Schuster
2021-09-20 15:02:36 +02:00
committed by GitHub
parent d13d0d4f07
commit d711673ee2
17 changed files with 306 additions and 551 deletions
+2 -3
View File
@@ -37,7 +37,7 @@ use polkadot_cli::{
use polkadot_node_core_candidate_validation::CandidateValidationSubsystem;
use polkadot_node_subsystem::{
messages::{AllMessages, CandidateValidationMessage},
overseer::{self, OverseerConnector, OverseerHandle},
overseer::{self, OverseerHandle},
FromOverseer,
};
@@ -86,7 +86,6 @@ struct BehaveMaleficient;
impl OverseerGen for BehaveMaleficient {
fn generate<'a, Spawner, RuntimeClient>(
&self,
connector: OverseerConnector,
args: OverseerGenArgs<'a, Spawner, RuntimeClient>,
) -> Result<(Overseer<Spawner, Arc<RuntimeClient>>, OverseerHandle), Error>
where
@@ -114,7 +113,7 @@ impl OverseerGen for BehaveMaleficient {
},
);
Overseer::new(leaves, all_subsystems, registry, runtime_client, spawner, connector)
Overseer::new(leaves, all_subsystems, registry, runtime_client, spawner)
.map_err(|e| e.into())
}
}