aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/filetransfer.cc
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-05-01 18:01:19 +0200
committereldritch horrors <pennae@lix.systems>2024-06-18 23:58:25 +0000
commit0b9a72524af84003de4b19b4eef0027d416e0972 (patch)
tree58258a859445a38df24ecc302611ba82a9074d5c /src/libstore/filetransfer.cc
parentb9b1bbd22fc3b34a4d8e2090f0d033f742c32ee0 (diff)
filetransfer: {up,down}load -> transfer
even the transfer function is not all that necessary since there aren't that many users, but we'll keep it for now. we could've kept both names but we also kind of want to use `download` for something else very soon Change-Id: I005e403ee59de433e139e37aa2045c26a523ccbf
Diffstat (limited to 'src/libstore/filetransfer.cc')
-rw-r--r--src/libstore/filetransfer.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/libstore/filetransfer.cc b/src/libstore/filetransfer.cc
index 156ab6f7a..065f38a0c 100644
--- a/src/libstore/filetransfer.cc
+++ b/src/libstore/filetransfer.cc
@@ -817,17 +817,11 @@ ref<FileTransfer> makeFileTransfer()
return makeCurlFileTransfer();
}
-FileTransferResult FileTransfer::download(const FileTransferRequest & request)
+FileTransferResult FileTransfer::transfer(const FileTransferRequest & request)
{
return enqueueFileTransfer(request).get();
}
-FileTransferResult FileTransfer::upload(const FileTransferRequest & request)
-{
- /* Note: this method is the same as download, but helps in readability */
- return enqueueFileTransfer(request).get();
-}
-
template<typename... Args>
FileTransferError::FileTransferError(FileTransfer::Error error, std::optional<std::string> response, const Args & ... args)
: Error(args...), error(error), response(response)