mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
docs: receipts cache touchups (#13963)
This commit is contained in:
8
crates/rpc/rpc-eth-types/src/cache/mod.rs
vendored
8
crates/rpc/rpc-eth-types/src/cache/mod.rs
vendored
@ -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.
|
||||
///
|
||||
@ -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>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user