-
Notifications
You must be signed in to change notification settings - Fork 58
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(pricing): add records_per_type into QuotingMetrics #2680
Conversation
@@ -138,7 +138,7 @@ pub struct NodeRecordStore { | |||
/// The configuration of the store. | |||
config: NodeRecordStoreConfig, | |||
/// Main records store remains unchanged for compatibility | |||
records: HashMap<Key, (NetworkAddress, ValidationType)>, | |||
records: HashMap<Key, (NetworkAddress, ValidationType, DataTypes)>, |
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.
Would it be possible to ditch ValidationType
and instead use the DataTypes
to derive it instead? Just a nit pick tbh, will make things a bit cleaner and can be a follow up if sounds reasonable to you..
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.
ValidationType
also need to hold the content_hash
for non-chunk data.
Meanwhile, DataTypes are public API
which supposed to keep as simple as possible.
So, don't think merge them
is good to the public user.
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.
Ah sorry, overlooked that! Thanks!
Description
add records_per_type into QuotingMetrics