From 7a599dc13018acc7f7d206581bf4cd4eb6368091 Mon Sep 17 00:00:00 2001 From: 0xLogicalx Date: Thu, 13 Nov 2025 01:09:19 +0100 Subject: [PATCH] chore: remove redundant clone in exex subscription RPC setup (#19699) --- examples/exex-subscription/src/main.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/examples/exex-subscription/src/main.rs b/examples/exex-subscription/src/main.rs index e39408a3dc..a2b46686f7 100644 --- a/examples/exex-subscription/src/main.rs +++ b/examples/exex-subscription/src/main.rs @@ -1,8 +1,5 @@ -#![allow(dead_code)] - //! An ExEx example that installs a new RPC subscription endpoint that emits storage changes for a //! requested address. -#[allow(dead_code)] use alloy_primitives::{Address, U256}; use futures::TryStreamExt; use jsonrpsee::{ @@ -167,8 +164,7 @@ async fn my_exex( fn main() -> eyre::Result<()> { reth_ethereum::cli::Cli::parse_args().run(|builder, _| async move { let (subscriptions_tx, subscriptions_rx) = mpsc::unbounded_channel::(); - - let rpc = StorageWatcherRpc::new(subscriptions_tx.clone()); + let rpc = StorageWatcherRpc::new(subscriptions_tx); let handle: NodeHandleFor = builder .node(EthereumNode::default())