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

This reverts commit 5f637c510e.
This commit is contained in:
Bernhard Schuster authored and GitHub committed 2021-09-20 13:02:36 +00:00
1 parent d13d0d4f07
commit d711673ee2
17 files changed
+306 -551

No files matched your search

+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())
}
}