mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-10 07:48:19 -05:00
chore: remove redundant clone in exex subscription RPC setup (#19699)
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user