docs: receipts cache touchups (#13963)

This commit is contained in:
Matthias Seitz
2025-01-24 09:48:11 +01:00
committed by GitHub
parent ee7820f2e3
commit 8a3d9b3899

View File

@ -263,9 +263,9 @@ pub(crate) struct EthStateCacheService<
{ {
/// The type used to lookup data from disk /// The type used to lookup data from disk
provider: Provider, 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<Provider::Block, LimitBlocks>, full_block_cache: BlockLruCache<Provider::Block, LimitBlocks>,
/// The LRU cache for full blocks grouped by their hash. /// The LRU cache for block receipts grouped by the block hash.
receipts_cache: ReceiptsLruCache<Provider::Receipt, LimitReceipts>, receipts_cache: ReceiptsLruCache<Provider::Receipt, LimitReceipts>,
/// The LRU cache for headers. /// The LRU cache for headers.
/// ///
@ -278,7 +278,9 @@ pub(crate) struct EthStateCacheService<
action_rx: UnboundedReceiverStream<CacheAction<Provider::Block, Provider::Receipt>>, action_rx: UnboundedReceiverStream<CacheAction<Provider::Block, Provider::Receipt>>,
/// The type that's used to spawn tasks that do the actual work /// The type that's used to spawn tasks that do the actual work
action_task_spawner: Tasks, 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<Semaphore>, rate_limiter: Arc<Semaphore>,
} }