mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-23 17:51:09 +00:00
Remove unnecessary RPC boxing (#11434)
This commit is contained in:
@@ -146,11 +146,9 @@ where
|
|||||||
if let Some(mut sink) = pending.accept() {
|
if let Some(mut sink) = pending.accept() {
|
||||||
sink.pipe_from_stream(stream).await;
|
sink.pipe_from_stream(stream).await;
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
.boxed();
|
|
||||||
|
|
||||||
self.executor
|
self.executor.spawn("substrate-rpc-subscription", Some("rpc"), fut.boxed());
|
||||||
.spawn("substrate-rpc-subscription", Some("rpc"), fut.map(drop).boxed());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn latest_finalized(&self) -> RpcResult<Block::Hash> {
|
async fn latest_finalized(&self) -> RpcResult<Block::Hash> {
|
||||||
|
|||||||
@@ -113,11 +113,9 @@ where
|
|||||||
if let Some(mut sink) = pending.accept() {
|
if let Some(mut sink) = pending.accept() {
|
||||||
sink.pipe_from_stream(stream).await;
|
sink.pipe_from_stream(stream).await;
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
.boxed();
|
|
||||||
|
|
||||||
self.executor
|
self.executor.spawn("substrate-rpc-subscription", Some("rpc"), fut.boxed());
|
||||||
.spawn("substrate-rpc-subscription", Some("rpc"), fut.map(drop).boxed());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn prove_finality(
|
async fn prove_finality(
|
||||||
|
|||||||
@@ -210,10 +210,8 @@ where
|
|||||||
};
|
};
|
||||||
|
|
||||||
sink.pipe_from_stream(stream).await;
|
sink.pipe_from_stream(stream).await;
|
||||||
}
|
};
|
||||||
.boxed();
|
|
||||||
|
|
||||||
self.executor
|
self.executor.spawn("substrate-rpc-subscription", Some("rpc"), fut.boxed());
|
||||||
.spawn("substrate-rpc-subscription", Some("rpc"), fut.map(drop).boxed());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -147,8 +147,7 @@ fn subscribe_headers<Block, Client, F, G, S>(
|
|||||||
if let Some(mut sink) = pending.accept() {
|
if let Some(mut sink) = pending.accept() {
|
||||||
sink.pipe_from_stream(stream).await;
|
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());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -404,11 +404,9 @@ where
|
|||||||
if let Some(mut sink) = pending.accept() {
|
if let Some(mut sink) = pending.accept() {
|
||||||
sink.pipe_from_stream(stream).await;
|
sink.pipe_from_stream(stream).await;
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
.boxed();
|
|
||||||
|
|
||||||
self.executor
|
self.executor.spawn("substrate-rpc-subscription", Some("rpc"), fut.boxed());
|
||||||
.spawn("substrate-rpc-subscription", Some("rpc"), fut.map(drop).boxed());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn subscribe_storage(&self, pending: PendingSubscription, keys: Option<Vec<StorageKey>>) {
|
fn subscribe_storage(&self, pending: PendingSubscription, keys: Option<Vec<StorageKey>>) {
|
||||||
@@ -451,11 +449,9 @@ where
|
|||||||
if let Some(mut sink) = pending.accept() {
|
if let Some(mut sink) = pending.accept() {
|
||||||
sink.pipe_from_stream(stream).await;
|
sink.pipe_from_stream(stream).await;
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
.boxed();
|
|
||||||
|
|
||||||
self.executor
|
self.executor.spawn("substrate-rpc-subscription", Some("rpc"), fut.boxed());
|
||||||
.spawn("substrate-rpc-subscription", Some("rpc"), fut.map(drop).boxed());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn trace_block(
|
async fn trace_block(
|
||||||
|
|||||||
Reference in New Issue
Block a user