ensure all spawned futures are exit-guarded (#59)

This commit is contained in:
Robert Habermeier
2018-12-29 18:05:45 +01:00
committed by GitHub
parent 5e04c22522
commit b2db7857a7
5 changed files with 85 additions and 58 deletions
+5 -1
View File
@@ -205,7 +205,11 @@ construct_service_factory! {
let client = service.client();
// collator connections and consensus network both fulfilled by this
let consensus_network = ConsensusNetwork::new(service.network(), service.client());
let consensus_network = ConsensusNetwork::new(
service.network(),
service.on_exit(),
service.client(),
);
let proposer_factory = ::consensus::ProposerFactory::new(
client.clone(),
consensus_network.clone(),