Remove unnecessary RPC boxing (#11434)

This commit is contained in:
Nazar Mokrynskyi authored and GitHub committed 2022-05-17 20:12:59 +00:00
1 parent 8bce841d70
commit 558daec697
5 files changed
+12 -23

No files matched your search

+2 -3
View File
@@ -147,8 +147,7 @@ fn subscribe_headers<Block, Client, F, G, S>(
if let Some(mut sink) = pending.accept() {
sink.pipe_from_stream(stream).await;
}
}
.boxed();
};
executor.spawn("substrate-rpc-subscription", Some("rpc"), fut.map(drop).boxed());
executor.spawn("substrate-rpc-subscription", Some("rpc"), fut.boxed());
}