mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
feat: use caching layer when fetching blocks for logs (#2350)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -48,8 +48,8 @@ where
|
||||
{
|
||||
// spawn a new cache task
|
||||
let eth_cache = EthStateCache::spawn_with(client.clone(), Default::default(), executor);
|
||||
let eth_api = EthApi::new(client.clone(), pool.clone(), network, eth_cache);
|
||||
let eth_filter = EthFilter::new(client, pool);
|
||||
let eth_api = EthApi::new(client.clone(), pool.clone(), network, eth_cache.clone());
|
||||
let eth_filter = EthFilter::new(client, pool, eth_cache.clone());
|
||||
launch_with_eth_api(eth_api, eth_filter, engine_api, socket_addr, secret).await
|
||||
}
|
||||
|
||||
|
||||
@ -754,7 +754,7 @@ where
|
||||
self.network.clone(),
|
||||
cache.clone(),
|
||||
);
|
||||
let filter = EthFilter::new(self.client.clone(), self.pool.clone());
|
||||
let filter = EthFilter::new(self.client.clone(), self.pool.clone(), cache.clone());
|
||||
|
||||
let pubsub = EthPubSub::new(
|
||||
self.client.clone(),
|
||||
|
||||
Reference in New Issue
Block a user