Pass an executor through the Configuration (#4688)

* Pass an executor through the Configuration

* Make tasks_executor mandatory

* Fix tests
This commit is contained in:
Pierre Krieger authored and Bastian Köcher committed 2020-01-21 13:06:15 +01:00
1 parent b7a63e3b77
commit 169a48c0c5
8 files changed
+48 -28

No files matched your search

+3
View File
@@ -40,6 +40,9 @@ pub enum Error {
/// Best chain selection strategy is missing.
#[display(fmt="Best chain selection strategy (SelectChain) is not provided.")]
SelectChainRequired,
/// Tasks executor is missing.
#[display(fmt="Tasks executor hasn't been provided.")]
TasksExecutorRequired,
/// Other error.
Other(String),
}