Unverified Commit c968cac6 authored by Alexandru Vasile's avatar Alexandru Vasile
Browse files

macro: Make subscription sink mutable


Signed-off-by: default avatarAlexandru Vasile <alexandru.vasile@parity.io>
parent f30d9d01
......@@ -215,7 +215,7 @@ impl RpcDescription {
let resources = handle_resource_limits(&sub.resources);
handle_register_result(quote! {
rpc.register_subscription(#rpc_sub_name, #rpc_notif_name, #rpc_unsub_name, |params, subscription_sink, context| {
rpc.register_subscription(#rpc_sub_name, #rpc_notif_name, #rpc_unsub_name, |params, mut subscription_sink, context| {
#parsing
context.as_ref().#rust_method_name(subscription_sink, #params_seq)
})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment