Rework the OnDemand service (#2670)

* Rework the OnDemand service

* Try fix line widths
This commit is contained in:
Pierre Krieger
2019-05-23 21:13:23 +02:00
committed by Gavin Wood
parent ffce18b994
commit ff479c4e23
8 changed files with 665 additions and 583 deletions
+3 -2
View File
@@ -24,6 +24,7 @@ mod sync;
use std::collections::{HashMap, HashSet, VecDeque};
use std::sync::Arc;
use crate::AlwaysBadChecker;
use log::trace;
use crate::chain::FinalityProofProvider;
use client::{self, ClientInfo, BlockchainEvents, FinalityNotifications};
@@ -956,7 +957,7 @@ pub trait TestNetFactory: Sized {
let protocol = Protocol::new(
config.clone(),
client.clone(),
None,
Arc::new(AlwaysBadChecker),
specialization,
).unwrap();
@@ -1010,7 +1011,7 @@ pub trait TestNetFactory: Sized {
let protocol = Protocol::new(
config,
client.clone(),
None,
Arc::new(AlwaysBadChecker),
specialization,
).unwrap();