Cleanup transaction pool deps (#4782)

* Cleanup transaction pool deps

* Fix it properly

* Fix doc test
This commit is contained in:
Bastian Köcher
2020-01-31 12:40:32 +01:00
committed by GitHub
parent ce47bfa2ba
commit 709a899f9d
19 changed files with 140 additions and 69 deletions
+9 -2
View File
@@ -56,8 +56,15 @@ struct TestSetup {
impl Default for TestSetup {
fn default() -> Self {
let keystore = KeyStore::new();
let client = Arc::new(substrate_test_runtime_client::TestClientBuilder::new().set_keystore(keystore.clone()).build());
let pool = Arc::new(BasicPool::new(Default::default(), FullChainApi::new(client.clone())));
let client = Arc::new(
substrate_test_runtime_client::TestClientBuilder::new()
.set_keystore(keystore.clone())
.build()
);
let pool = Arc::new(BasicPool::new(
Default::default(),
Arc::new(FullChainApi::new(client.clone())),
));
TestSetup {
runtime: runtime::Runtime::new().expect("Failed to create runtime in test setup"),
client,