mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-03 03:25:01 -05:00
fix(rpc): use eth id provider for filter (#1740)
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
use crate::{
|
||||
eth::error::EthApiError,
|
||||
result::{internal_rpc_err, rpc_error_with_code, ToRpcResult},
|
||||
EthSubscriptionIdProvider,
|
||||
};
|
||||
use async_trait::async_trait;
|
||||
use jsonrpsee::{
|
||||
core::RpcResult,
|
||||
server::{IdProvider, RandomIntegerIdProvider},
|
||||
};
|
||||
use jsonrpsee::{core::RpcResult, server::IdProvider};
|
||||
use reth_primitives::{
|
||||
filter::{Filter, FilterBlockOption, FilteredParams},
|
||||
Block, U256,
|
||||
@@ -36,7 +34,7 @@ impl<Client, Pool> EthFilter<Client, Pool> {
|
||||
client,
|
||||
active_filters: Default::default(),
|
||||
pool,
|
||||
id_provider: Arc::new(RandomIntegerIdProvider),
|
||||
id_provider: Arc::new(EthSubscriptionIdProvider::default()),
|
||||
max_logs_in_response: DEFAULT_MAX_LOGS_IN_RESPONSE,
|
||||
};
|
||||
Self { inner: Arc::new(inner) }
|
||||
|
||||
Reference in New Issue
Block a user