chore: remove redundant clone in exex subscription RPC setup (#19699)

This commit is contained in:
0xLogicalx
2025-11-13 01:09:19 +01:00
committed by GitHub
parent 474351a929
commit 7a599dc130

View File

@@ -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<Node: FullNodeComponents>(
fn main() -> eyre::Result<()> {
reth_ethereum::cli::Cli::parse_args().run(|builder, _| async move {
let (subscriptions_tx, subscriptions_rx) = mpsc::unbounded_channel::<SubscriptionRequest>();
let rpc = StorageWatcherRpc::new(subscriptions_tx.clone());
let rpc = StorageWatcherRpc::new(subscriptions_tx);
let handle: NodeHandleFor<EthereumNode> = builder
.node(EthereumNode::default())