-
Notifications
You must be signed in to change notification settings - Fork 53
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
Accept any type as the key of the downloader actor #2291
Accept any type as the key of the downloader actor #2291
Conversation
Codecov Report
Additional details and impacted files
|
Robot Results
|
This change is required for c8y-mapper's enhancement to download a file per an operation. For example, if the key is only string, it's difficult to distinguish which operation (software, firmware, config_update) fires the download request. Signed-off-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
9bdfdc7
to
dc2bf1a
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.
Approved
Although I've got nothing against making the Downloader accept generic types as request keys, I fail to get the benefits from the mapper side. The mapper already had to send a unique |
Proposed changes
This change is required for c8y-mapper's enhancement to download a file per an operation. For example, if the key is only string, it's difficult to distinguish which operation (software, firmware, config_update) fires the download request.
So, this kind of example usage will be possible with this change, sending
DownloadRequest
:Types of changes
Paste Link to the issue
#2292
Checklist
cargo fmt
as mentioned in CODING_GUIDELINEScargo clippy
as mentioned in CODING_GUIDELINESFurther comments