Bump jsonrpc to fix hang on exit (#1367)

* Test RPC fix.

* Fix meta in unsubscribe.

* Fix meta in unsubscribe.
This commit is contained in:
Tomasz Drwięga authored and Gav Wood committed 2019-01-08 14:46:07 +01:00
1 parent b104c02eb6
commit 38cdd0a5c6
4 files changed
+16 -16

No files matched your search

+2 -2
View File
@@ -64,7 +64,7 @@ build_rpc_trait! {
/// Unsubscribe from extrinsic watching.
#[rpc(name = "author_unwatchExtrinsic")]
fn unwatch_extrinsic(&self, Self::Metadata, SubscriptionId) -> Result<bool>;
fn unwatch_extrinsic(&self, Option<Self::Metadata>, SubscriptionId) -> Result<bool>;
}
}
@@ -149,7 +149,7 @@ impl<B, E, P, RA> AuthorApi<ExHash<P>, BlockHash<P>> for Author<B, E, P, RA> whe
})
}
fn unwatch_extrinsic(&self, _metadata: Self::Metadata, id: SubscriptionId) -> Result<bool> {
fn unwatch_extrinsic(&self, _metadata: Option<Self::Metadata>, id: SubscriptionId) -> Result<bool> {
Ok(self.subscriptions.cancel(id))
}
}