Skip to content

feat(rpc): integrate eth cache and task executor in pipeline#1596

Merged
gakonst merged 2 commits intomainfrom
matt/integrate-cache-and-task-in-rpc-pipeline
Mar 1, 2023
Merged

feat(rpc): integrate eth cache and task executor in pipeline#1596
gakonst merged 2 commits intomainfrom
matt/integrate-cache-and-task-in-rpc-pipeline

Conversation

@mattsse
Copy link
Collaborator

@mattsse mattsse commented Mar 1, 2023

Integrates new EthCache into rpc-builder pipeline and adds TaskSpawner support which is also required for installing Eth pubsub

@mattsse mattsse requested review from gakonst and onbjerg as code owners March 1, 2023 17:04
@mattsse mattsse added C-enhancement New feature or request A-rpc Related to the RPC implementation labels Mar 1, 2023
@mattsse mattsse force-pushed the matt/integrate-cache-and-task-in-rpc-pipeline branch 2 times, most recently from 9522a71 to 0ff9c3a Compare March 1, 2023 17:18
@mattsse mattsse force-pushed the matt/integrate-cache-and-task-in-rpc-pipeline branch from 0ff9c3a to 2302294 Compare March 1, 2023 17:20
@codecov-commenter
Copy link

codecov-commenter commented Mar 1, 2023

Codecov Report

Merging #1596 (cdd4937) into main (2884eae) will decrease coverage by 0.03%.
The diff coverage is 56.75%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##             main    #1596      +/-   ##
==========================================
- Coverage   74.81%   74.79%   -0.03%     
==========================================
  Files         374      374              
  Lines       44249    44350     +101     
==========================================
+ Hits        33105    33171      +66     
- Misses      11144    11179      +35     
Flag Coverage Δ
integration-tests 21.25% <40.54%> (+0.12%) ⬆️
unit-tests 69.37% <27.02%> (-0.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
bin/reth/src/args/rpc_server_args.rs 54.39% <0.00%> (-5.25%) ⬇️
bin/reth/src/node/mod.rs 2.83% <0.00%> (-0.06%) ⬇️
crates/rpc/rpc-builder/src/auth.rs 0.00% <0.00%> (ø)
crates/rpc/rpc/src/lib.rs 100.00% <ø> (ø)
crates/tasks/src/lib.rs 69.52% <ø> (ø)
crates/rpc/rpc-builder/src/lib.rs 67.50% <73.33%> (+0.42%) ⬆️
crates/rpc/rpc/src/eth/cache.rs 37.87% <95.23%> (+37.87%) ⬆️
crates/rpc/rpc/src/eth/api/mod.rs 69.13% <100.00%> (ø)
crates/rpc/rpc/src/eth/api/server.rs 99.00% <100.00%> (+0.03%) ⬆️
crates/rpc/rpc/src/eth/api/transactions.rs 81.81% <100.00%> (+2.33%) ⬆️
... and 11 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@mattsse mattsse force-pushed the matt/integrate-cache-and-task-in-rpc-pipeline branch from 24e3a9c to 2d892a6 Compare March 1, 2023 19:35
@mattsse mattsse force-pushed the matt/integrate-cache-and-task-in-rpc-pipeline branch from 2d892a6 to cdd4937 Compare March 1, 2023 19:38
Copy link
Member

@gakonst gakonst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sweet

Comment on lines +536 to +540
/// Returns the [EthStateCache] frontend
///
/// This will spawn exactly one [EthStateCache] service if this is the first time the cache is
/// requested.
pub fn eth_cache(&mut self) -> EthStateCache {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assuming this is a cheap clone cuz the thing we're cloning only stores the channels

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes only clones a sender

@gakonst gakonst merged commit 626c076 into main Mar 1, 2023
@gakonst gakonst deleted the matt/integrate-cache-and-task-in-rpc-pipeline branch March 1, 2023 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-rpc Related to the RPC implementation C-enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants