-
Notifications
You must be signed in to change notification settings - Fork 771
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
refactor(trie): mark db
as protected
to avoid leaky properties
#2221
Conversation
Signed-off-by: Brian Faust <hello@basecode.sh>
Signed-off-by: Brian Faust <hello@basecode.sh>
Signed-off-by: Brian Faust <hello@basecode.sh>
Signed-off-by: Brian Faust <hello@basecode.sh>
Signed-off-by: Brian Faust <hello@basecode.sh>
Signed-off-by: Brian Faust <hello@basecode.sh>
Signed-off-by: Brian Faust <hello@basecode.sh>
Signed-off-by: Brian Faust <hello@basecode.sh>
Signed-off-by: Brian Faust <hello@basecode.sh>
Signed-off-by: Brian Faust <hello@basecode.sh>
Signed-off-by: Brian Faust <hello@basecode.sh>
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more. |
fbfd5de
to
c913bd2
Compare
@holgerd77 conflicts resolved |
Just ran this against my app and its test suite and all good. |
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 looks good too, won't give an approval yet.
/** | ||
* Flushes all checkpoints, restoring the initial checkpoint state. | ||
*/ | ||
flushCheckpoints() { |
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.
👍
Will resolve conflicts when other PRs are sorted. |
@faustbrian ah, can you rather just cherry-pick the essential commits? These are only 7 or so, and then you could just solve some eventual conflicts one-by-one? With this muddling all together I am somewhat afraid that this will really head to some "big messy bunch". 😬 |
(so on top of a fresh |
Update: ah ok, maybe this works as well, we'll see. 😬 |
Squashed everything into a new branch. Faster than cherry picking. |
The
db
property shouldn't be accessible outside of the trie instance because we wrap it soopts.db
andthis.db
aren't equal and in general everything that can be non-public should be non-public by default. Always start with private and only work up if necessary.