mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-08 03:01:12 -04:00
chore: resolve unused import warning in reth RPC API subscription attribute (#16975)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user