-
Notifications
You must be signed in to change notification settings - Fork 486
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
[Merged by Bors] - feat: fvm API Client and updated type definitions #3566
[Merged by Bors] - feat: fvm API Client and updated type definitions #3566
Conversation
8d22fe5
to
adc2ca8
Compare
|
||
/// Builds the URL to the Hub API for fetching a [`PackageSet`] using the | ||
/// [`Client`]'s `api_url`. | ||
fn make_fetch_package_set_url<S: AsRef<str>>( |
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 seems like separate util?
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.
concern that this URL has too many nested so make it hard to maintain.
name, channel, arch seems to be qualifier.
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 builds the URL for the request separately so it can be isolated when testing, is strongly tied to the client given that is only used for this request.
Each of the params should be provided by the consumer:
- Name for the package set to fetch
- Version/Channel
- Architecture of the host machine to download compatible binaries
adc2ca8
to
8c9c2e8
Compare
0abec02
to
ee83816
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.
LGTM. there are couple of AsRef
that could be converted to impl
but not show stopper
f7e1dde
to
d88ebdf
Compare
bors r+ |
Provides the FVM API Client which serves as the Channel Manager. Also provides unit tests for `Channel` and updates type definitions.
Pull request successfully merged into master. Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
Provides the FVM API Client which serves as the Channel Manager.
Also provides unit tests for
Channel
and updates type definitions.