Skip to content
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

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

maqi
Copy link
Member

@maqi maqi commented Jan 29, 2025

Description

add records_per_type into QuotingMetrics

@maqi maqi changed the title feat(pricing): add total_cost_unit into QuotingMetrics feat(pricing): add records_per_type into QuotingMetrics Jan 29, 2025
@@ -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)>,
Copy link
Member

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..

Copy link
Member Author

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.

Copy link
Member

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!

@maqi maqi added this pull request to the merge queue Jan 30, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 30, 2025
@maqi maqi added this pull request to the merge queue Jan 30, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 30, 2025
@maqi maqi added this pull request to the merge queue Jan 30, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 30, 2025
@maqi maqi added this pull request to the merge queue Jan 30, 2025
Merged via the queue into maidsafe:main with commit adb8930 Jan 30, 2025
25 checks passed
@maqi maqi deleted the total_cost_unit branch January 30, 2025 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants