-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Make ObjectStoreProvider fallible (return Result
rather than Option
)
#3584
Make ObjectStoreProvider fallible (return Result
rather than Option
)
#3584
Conversation
0687700
to
067a25c
Compare
Option
rather than None
)
Option
rather than None
)Result
rather than Option
)
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.
cc @yahoNanJing and @thinkharderdev for the next ballista upgrade
Thanks @tustvold |
Codecov Report
@@ Coverage Diff @@
## master #3584 +/- ##
==========================================
- Coverage 86.03% 86.02% -0.01%
==========================================
Files 300 300
Lines 56253 56250 -3
==========================================
- Hits 48395 48390 -5
- Misses 7858 7860 +2
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Benchmark runs are scheduled for baseline = a080c03 and contender = be6ad1c. be6ad1c is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
/// Return the key and object store | ||
fn get_by_url(&self, url: &Url) -> Option<Arc<dyn ObjectStore>>; | ||
/// Return an ObjectStore for the provided url based on its scheme and authority | ||
fn get_by_url(&self, url: &Url) -> Result<Arc<dyn ObjectStore>>; |
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.
Better to change it to be
Result<Option<Arc<dyn ObjectStore>>>
Thanks @alamb for this info. I think better to change the return type to be
|
Follow on PR and discussion for |
Which issue does this PR close?
re #3424
Rationale for this change
#3540 (comment)
What changes are included in this PR?
Makes
ObjectStoreProvider::get_by_url
fallible and clarifies some docsAre there any user-facing changes?