Global unique subscription ids. (#848)

* Global unique subscription ids.

* Fix tests.
This commit is contained in:
Tomasz Drwięga
2018-10-01 17:31:52 +02:00
committed by Gav Wood
parent 04cf0072ba
commit e8d88fcb7b
10 changed files with 56 additions and 38 deletions
+4 -3
View File
@@ -232,9 +232,10 @@ impl<Components> Service<Components>
let (rpc_http, rpc_ws) = {
let handler = || {
let client = client.clone();
let chain = rpc::apis::chain::Chain::new(client.clone(), task_executor.clone());
let state = rpc::apis::state::State::new(client.clone(), task_executor.clone());
let author = rpc::apis::author::Author::new(client.clone(), transaction_pool.clone(), task_executor.clone());
let subscriptions = rpc::apis::Subscriptions::new(task_executor.clone());
let chain = rpc::apis::chain::Chain::new(client.clone(), subscriptions.clone());
let state = rpc::apis::state::State::new(client.clone(), subscriptions.clone());
let author = rpc::apis::author::Author::new(client.clone(), transaction_pool.clone(), subscriptions.clone());
rpc::rpc_handler::<ComponentBlock<Components>, ComponentExHash<Components>, _, _, _, _, _>(
state,
chain,