-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: move RPC cache constants and type #8597
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
DEFAULT_BLOCK_CACHE_MAX_LEN, DEFAULT_CONCURRENT_DB_REQUESTS, DEFAULT_ENV_CACHE_MAX_LEN, | ||
DEFAULT_RECEIPT_CACHE_MAX_LEN, | ||
}; | ||
use clap::Args; | ||
|
||
/// Parameters to configure RPC state cache. | ||
#[derive(Debug, Clone, Args, PartialEq, Eq)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this I want to keep in node-core because it's an Args type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
I think next step is investigating, whether we can extract the node-core/cli/config/ traits.
a few solutions are possible here
a) move them to node-builder
b) move all of them to a separate crate under CLI
c) move RethRpcConfig to rpc-builder
perhaps option c) is the most viable solution
Closes #8588