-
Notifications
You must be signed in to change notification settings - Fork 224
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
Move database impls into their own crates #611
Conversation
Codecov ReportBase: 72.43% // Head: 72.38% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #611 +/- ##
==========================================
- Coverage 72.43% 72.38% -0.06%
==========================================
Files 85 85
Lines 11550 11590 +40
==========================================
+ Hits 8366 8389 +23
- Misses 3184 3201 +17
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
fedimint-rocksdb/src/lib.rs
Outdated
Ok(RocksDb(db)) | ||
} | ||
|
||
pub fn into_any(self) -> Box<dyn Database> { |
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 (_any
) is a bit of a misnomer, as Any
and dyn Trait
are a different trait. into_dyn
or into_boxed
maybe?
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.
There's also a lot of to_any
in the network stack. I should rename that too.
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.
Fixed in #626
047a3b0
to
6f54df1
Compare
@dpc noted that `(in)to_any` is inaccurate in fedimint#611. fedimint#611 (comment)
c39050b
to
8810ff9
Compare
8810ff9
to
59c72e3
Compare
This way we don't have to use feature flags on
fedimint-api
anymore and make sure third party DB implementations would actually work.