fix subscription name

This commit is contained in:
Robert Habermeier 2017-07-27 12:38:22 +02:00
parent 5eb8cea6e7
commit 1be3e5ec5e

View File

@ -132,9 +132,9 @@ build_rpc_trait! {
pub trait WhisperPubSub { pub trait WhisperPubSub {
type Metadata; type Metadata;
#[pubsub(name = "hello")] { #[pubsub(name = "shh_subscription")] {
/// Subscribe to messages matching the filter. /// Subscribe to messages matching the filter.
#[rpc(name = "ssh_subscribe")] #[rpc(name = "shh_subscribe")]
fn subscribe(&self, Self::Metadata, pubsub::Subscriber<types::FilterItem>, types::FilterRequest); fn subscribe(&self, Self::Metadata, pubsub::Subscriber<types::FilterItem>, types::FilterRequest);
/// Unsubscribe from filter matching given ID. Return /// Unsubscribe from filter matching given ID. Return