only add pubsub if generic pubsub off
This commit is contained in:
parent
1be3e5ec5e
commit
18fbf3c174
@ -282,9 +282,11 @@ impl FullDependencies {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
Api::EthPubSub => {
|
Api::EthPubSub => {
|
||||||
let client = EthPubSubClient::new(self.client.clone(), self.remote.clone());
|
if !for_generic_pubsub {
|
||||||
self.client.add_notify(client.handler());
|
let client = EthPubSubClient::new(self.client.clone(), self.remote.clone());
|
||||||
handler.extend_with(client.to_delegate());
|
self.client.add_notify(client.handler());
|
||||||
|
handler.extend_with(client.to_delegate());
|
||||||
|
}
|
||||||
},
|
},
|
||||||
Api::Personal => {
|
Api::Personal => {
|
||||||
handler.extend_with(PersonalClient::new(&self.secret_store, dispatcher.clone(), self.geth_compatibility).to_delegate());
|
handler.extend_with(PersonalClient::new(&self.secret_store, dispatcher.clone(), self.geth_compatibility).to_delegate());
|
||||||
@ -353,9 +355,13 @@ impl FullDependencies {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Api::WhisperPubSub => {
|
Api::WhisperPubSub => {
|
||||||
if let Some(ref whisper_rpc) = self.whisper_rpc {
|
if !for_generic_pubsub {
|
||||||
let whisper = whisper_rpc.make_handler();
|
if let Some(ref whisper_rpc) = self.whisper_rpc {
|
||||||
handler.extend_with(::parity_whisper::rpc::WhisperPubSub::to_delegate(whisper));
|
let whisper = whisper_rpc.make_handler();
|
||||||
|
handler.extend_with(
|
||||||
|
::parity_whisper::rpc::WhisperPubSub::to_delegate(whisper)
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user