Unverified Commit 1d983c77 authored by Alexandru Vasile's avatar Alexandru Vasile
Browse files

Fix benches


Signed-off-by: default avatarAlexandru Vasile <alexandru.vasile@parity.io>
parent 18d81699
Pipeline #200607 failed with stages
in 1 minute and 49 seconds
......@@ -141,8 +141,7 @@ pub async fn ws_server(handle: tokio::runtime::Handle) -> (String, jsonrpsee::ws
let mut module = gen_rpc_module();
module
.register_subscription(SUB_METHOD_NAME, SUB_METHOD_NAME, UNSUB_METHOD_NAME, |_params, pending, _ctx| {
let mut sink = pending.accept()?;
.register_subscription(SUB_METHOD_NAME, SUB_METHOD_NAME, UNSUB_METHOD_NAME, |_params, mut sink, _ctx| {
let x = "Hello";
tokio::spawn(async move { sink.send(&x) });
Ok(())
......
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