aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/filetransfer.hh
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.hh
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.hh')
-rw-r--r--src/libstore/filetransfer.hh9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/libstore/filetransfer.hh b/src/libstore/filetransfer.hh
index 23105e245..5d739112b 100644
--- a/src/libstore/filetransfer.hh
+++ b/src/libstore/filetransfer.hh
@@ -99,14 +99,9 @@ struct FileTransfer
virtual std::future<FileTransferResult> enqueueFileTransfer(const FileTransferRequest & request) = 0;
/**
- * Synchronously download a file.
+ * Synchronously transfer a file.
*/
- FileTransferResult download(const FileTransferRequest & request);
-
- /**
- * Synchronously upload a file.
- */
- FileTransferResult upload(const FileTransferRequest & request);
+ FileTransferResult transfer(const FileTransferRequest & request);
/**
* Download a file, writing its data to a sink. The sink will be