chore: resolve unused import warning in reth RPC API subscription attribute (#16975)

This commit is contained in:
Federico Gimenez
2025-06-20 17:43:13 +02:00
committed by GitHub
parent 0ce46431fd
commit 8f16e2199f

View File

@@ -1,9 +1,11 @@
use alloy_eips::BlockId;
use alloy_primitives::{Address, U256};
use jsonrpsee::{core::RpcResult, proc_macros::rpc};
use reth_chain_state::CanonStateNotification;
use std::collections::HashMap;
// Required for the subscription attribute below
use reth_chain_state as _;
/// Reth API namespace for reth-specific methods
#[cfg_attr(not(feature = "client"), rpc(server, namespace = "reth"))]
#[cfg_attr(feature = "client", rpc(server, client, namespace = "reth"))]
@@ -19,7 +21,7 @@ pub trait RethApi {
#[subscription(
name = "subscribeChainNotifications",
unsubscribe = "unsubscribeChainNotifications",
item = CanonStateNotification
item = reth_chain_state::CanonStateNotification
)]
async fn reth_subscribe_chain_notifications(&self) -> jsonrpsee::core::SubscriptionResult;
}