1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 14:51:16 +02:00

Add upload method

This commit is contained in:
Nikola Knezevic 2020-04-06 23:34:31 +02:00
parent a0c5931208
commit 7848372b0f
3 changed files with 10 additions and 2 deletions

View file

@ -107,7 +107,7 @@ protected:
req.data = std::make_shared<string>(data); // FIXME: inefficient
req.mimeType = mimeType;
try {
getDataTransfer()->download(req);
getDataTransfer()->upload(req);
} catch (DataTransferError & e) {
throw UploadToHTTP("while uploading to HTTP binary cache at '%s': %s", cacheUri, e.msg());
}
@ -174,4 +174,3 @@ static RegisterStoreImplementation regStore([](
});
}