From 9afc4f80bfd9e67517d34e711d9597f8a698f3d7 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Fri, 24 Jan 2025 09:48:11 +0100 Subject: [PATCH] docs: receipts cache touchups (#13963) --- crates/rpc/rpc-eth-types/src/cache/mod.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/rpc/rpc-eth-types/src/cache/mod.rs b/crates/rpc/rpc-eth-types/src/cache/mod.rs index 1a39ce210868..7e575297c99e 100644 --- a/crates/rpc/rpc-eth-types/src/cache/mod.rs +++ b/crates/rpc/rpc-eth-types/src/cache/mod.rs @@ -263,9 +263,9 @@ pub(crate) struct EthStateCacheService< { /// The type used to lookup data from disk provider: Provider, - /// The LRU cache for full blocks grouped by their hash. + /// The LRU cache for full blocks grouped by their block hash. full_block_cache: BlockLruCache, - /// The LRU cache for full blocks grouped by their hash. + /// The LRU cache for block receipts grouped by the block hash. receipts_cache: ReceiptsLruCache, /// The LRU cache for headers. /// @@ -278,7 +278,9 @@ pub(crate) struct EthStateCacheService< action_rx: UnboundedReceiverStream>, /// The type that's used to spawn tasks that do the actual work action_task_spawner: Tasks, - /// Rate limiter + /// Rate limiter for spawned fetch tasks. + /// + /// This restricts the max concurrent fetch tasks at the same time. rate_limiter: Arc, }