Skip to content

Commit

Permalink
docs: receipts cache touchups (#13963)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Jan 24, 2025
1 parent ee7820f commit 8a3d9b3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions crates/rpc/rpc-eth-types/src/cache/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<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>,
/// The LRU cache for headers.
///
Expand All @@ -278,7 +278,9 @@ pub(crate) struct EthStateCacheService<
action_rx: UnboundedReceiverStream<CacheAction<Provider::Block, Provider::Receipt>>,
/// 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<Semaphore>,
}

Expand Down

0 comments on commit 8a3d9b3

Please sign in to comment.