Skip to content
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

Rename download to filetransfer #3476

Merged
merged 13 commits into from Apr 9, 2020

Conversation

knl
Copy link
Contributor

@knl knl commented Apr 6, 2020

This change renames all instances of Download to FileTransfer. I initially was taken by surprise that getDownloader->download() would also do uploads, depending on whether Download struct has data field or not. Thus, in order to ease the cognitive burden of the future readers of the code, I went in and did a rename.

In addition, this change introduces a new method called upload, which is exactly the same as download, which in turns just enqueues the request and synchronously waits. This is to make it more readable at the call site what is happening.

All the changes will be squashed into a single one prior to (hopefully) approval and merging.

@knl knl marked this pull request as ready for review April 6, 2020 21:59
@domenkozar domenkozar requested a review from edolstra April 7, 2020 20:07
@edolstra
Copy link
Member

edolstra commented Apr 8, 2020

Could you rebase this?

@knl knl force-pushed the rename-download-to-filetransfer branch from df8e1bb to 1e88244 Compare April 8, 2020 12:12
@knl
Copy link
Contributor Author

knl commented Apr 8, 2020

Could you rebase this?

@edolstra Done

@domenkozar
Copy link
Member

Once again :)

@knl knl force-pushed the rename-download-to-filetransfer branch from 1e88244 to 7867685 Compare April 8, 2020 20:27
@knl
Copy link
Contributor Author

knl commented Apr 8, 2020

@domenkozar @edolstra Done, again :)

@domenkozar domenkozar merged commit 74f94d6 into NixOS:master Apr 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants