mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 13:27:57 +00:00
Remove unnecessary RPC boxing (#11434)
This commit is contained in:
@@ -210,10 +210,8 @@ where
|
||||
};
|
||||
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
@@ -404,11 +404,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());
|
||||
}
|
||||
|
||||
fn subscribe_storage(&self, pending: PendingSubscription, keys: Option<Vec<StorageKey>>) {
|
||||
@@ -451,11 +449,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 trace_block(
|
||||
|
||||
Reference in New Issue
Block a user