Remove unnecessary RPC boxing (#11434)

This commit is contained in:
Nazar Mokrynskyi
2022-05-17 23:12:59 +03:00
committed by GitHub
parent 8bce841d70
commit 558daec697
5 changed files with 12 additions and 23 deletions
@@ -113,11 +113,9 @@ where
if let Some(mut sink) = pending.accept() {
sink.pipe_from_stream(stream).await;
}
}
.boxed();
};
self.executor
.spawn("substrate-rpc-subscription", Some("rpc"), fut.map(drop).boxed());
self.executor.spawn("substrate-rpc-subscription", Some("rpc"), fut.boxed());
}
async fn prove_finality(