-
Notifications
You must be signed in to change notification settings - Fork 24
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
Modified BlockStore trait #257
Conversation
5f9f012
to
ef481e2
Compare
Codecov Report
@@ Coverage Diff @@
## main #257 +/- ##
==========================================
- Coverage 60.06% 57.26% -2.81%
==========================================
Files 38 40 +2
Lines 2697 2885 +188
Branches 666 712 +46
==========================================
+ Hits 1620 1652 +32
- Misses 624 769 +145
- Partials 453 464 +11
|
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.
Another great PR. Thank you for creating this.
We've wanted change the ref mut blockstore params to ref so this partly fixes #251.
I have some comments on the PR. They are mostly nits.
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.
Another great PR. Thank you for creating this.
We've wanted change the ref mut blockstore params to ref so this partly fixes #251.
I have some comments on the PR. They are mostly nits.
Signed-off-by: Vera Gonzalez <[email protected]>
Thanks for this Vera! The BlockStore trait adjustment seems good :) About where the blockstore implementations belong: IMO it makes most sense to put them closer to your data prep tool, outside of rs-wnfs. |
Signed-off-by: Vera Gonzalez <[email protected]> Co-Authored-By: Stephen Akinyemi <[email protected]>
da63bfe
to
0815bfc
Compare
e402164
to
c03d71c
Compare
c03d71c
to
a1e7927
Compare
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.
Just some small nits remaining, but otherwise GTG!
Hm. This PR has merge conflicts now that #265 landed. I know it can be annoying (to have to repeatedly re-rebase a refactoring PR while smaller PRs are coming in). If you want to, we can take over rebasing @organizedgrime, just let us know (and enable the "allow edits from maintainers" thingie on this PR unless you already have).
Here, many changes have been made, but all within the confines of
BlockStores
and how they operate.BlockStore
s are no longer passed around mutably. Instead, an individual implementation of a givenBlockStore
will useRefCell
s,Lock
s,Cow
s, etc. to achieve interior mutability in cases where it is required. This changes the signature and lifetimes for many functions, including theput_block
andget_block
functions required by the trait itself.