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

[store] Introduce Epoch store adapter #12856

Merged
merged 3 commits into from
Jan 31, 2025
Merged

Conversation

shreyan-gupta
Copy link
Contributor

Follow up on all the store adapter work.

In future I'll add update adapter as well

Copy link
Contributor

@pugachAG pugachAG left a comment

Choose a reason for hiding this comment

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

nice, thanks!

}

// Iterate over all the epoch infos in store
pub fn iter_epoch_info<'a>(&'a self) -> Box<dyn Iterator<Item = (EpochId, EpochInfo)> + 'a> {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can avoid using Box + dyn here and just return impl Iterator, but feel free to merge as it is for now, I will try that and submit a separate PR if it works

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice, you're right! I can do away with the Box and just use impl Iterator. I was originally going off what we had in DBIterator<'a>

Copy link

codecov bot commented Jan 31, 2025

Codecov Report

Attention: Patch coverage is 69.38776% with 30 lines in your changes missing coverage. Please review.

Project coverage is 70.39%. Comparing base (72999fa) to head (4ba3b7e).
Report is 6 commits behind head on master.

Files with missing lines Patch % Lines
chain/client/src/sync/epoch.rs 56.25% 0 Missing and 21 partials ⚠️
core/store/src/adapter/epoch_store.rs 82.05% 3 Missing and 4 partials ⚠️
chain/epoch-manager/src/lib.rs 66.66% 1 Missing ⚠️
core/store/src/adapter/chain_store.rs 50.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master   #12856   +/-   ##
=======================================
  Coverage   70.39%   70.39%           
=======================================
  Files         851      853    +2     
  Lines      174188   174114   -74     
  Branches   174188   174114   -74     
=======================================
- Hits       122614   122570   -44     
+ Misses      46327    46321    -6     
+ Partials     5247     5223   -24     
Flag Coverage Δ
backward-compatibility 0.35% <0.00%> (+0.19%) ⬆️
db-migration 0.35% <0.00%> (+0.19%) ⬆️
genesis-check 1.41% <0.00%> (-0.01%) ⬇️
linux 70.07% <69.38%> (+<0.01%) ⬆️
linux-nightly 70.03% <69.38%> (+<0.01%) ⬆️
pytests 1.72% <0.00%> (+0.01%) ⬆️
sanity-checks 1.52% <0.00%> (-0.01%) ⬇️
unittests 70.22% <69.38%> (-0.01%) ⬇️
upgradability 0.35% <0.00%> (+0.15%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@shreyan-gupta shreyan-gupta added this pull request to the merge queue Jan 31, 2025
Merged via the queue into master with commit fb3c0cc Jan 31, 2025
27 of 29 checks passed
@shreyan-gupta shreyan-gupta deleted the shreyan/store/epoch branch January 31, 2025 20:21
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