diff --git a/substrate/client/beefy/rpc/src/lib.rs b/substrate/client/beefy/rpc/src/lib.rs index e4c8c76419ccbcecf031e45956c4c3411ec0687a..ea35678a48b8f1df13ac69644119b55676d08439 100644 --- a/substrate/client/beefy/rpc/src/lib.rs +++ b/substrate/client/beefy/rpc/src/lib.rs @@ -146,11 +146,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 latest_finalized(&self) -> RpcResult<Block::Hash> { diff --git a/substrate/client/finality-grandpa/rpc/src/lib.rs b/substrate/client/finality-grandpa/rpc/src/lib.rs index 82962d716d58909a7df244902bc2859ba470ef17..cb51d71b20bf4b30959bdb3fce4bbc5fba2c24f6 100644 --- a/substrate/client/finality-grandpa/rpc/src/lib.rs +++ b/substrate/client/finality-grandpa/rpc/src/lib.rs @@ -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( diff --git a/substrate/client/rpc/src/author/mod.rs b/substrate/client/rpc/src/author/mod.rs index d10398afc813b915d9cffdfd7b870d1e436e911d..b8c4f5d582808373e8740845c97abab260ce1afe 100644 --- a/substrate/client/rpc/src/author/mod.rs +++ b/substrate/client/rpc/src/author/mod.rs @@ -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()); } } diff --git a/substrate/client/rpc/src/chain/chain_full.rs b/substrate/client/rpc/src/chain/chain_full.rs index 9ca6b3edcfe60992ca37e3b8d62e681eee69f861..2d507f7b9b684e5a305b278480531e2721a720fe 100644 --- a/substrate/client/rpc/src/chain/chain_full.rs +++ b/substrate/client/rpc/src/chain/chain_full.rs @@ -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()); } diff --git a/substrate/client/rpc/src/state/state_full.rs b/substrate/client/rpc/src/state/state_full.rs index 48165e912b03ae852d97c03c3a070cc6bf03aeef..0e20832b30508193f68f97f54e65c73f1282f2e9 100644 --- a/substrate/client/rpc/src/state/state_full.rs +++ b/substrate/client/rpc/src/state/state_full.rs @@ -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(