aboutsummaryrefslogtreecommitdiff
path: root/src/libstore
diff options
context:
space:
mode:
authorLinus Heckemann <git@sphalerite.org>2024-05-31 19:30:35 +0200
committerJade Lovelace <lix@jade.fyi>2024-06-05 15:50:57 -0700
commit609b72142546c922b1ca52ac7bf9ae00c2f452c0 (patch)
tree079728a496d7de3f25e5d1622bc29b589f6cfbc5 /src/libstore
parentff08d954206a557ec7afe7301cdb4bb72114875f (diff)
libstore/filetransfer: fix no-s3 build
Fixes a compiler error that looks like: error: could not convert '[...]' from 'future<void>' to 'future<nix::FileTransferResult>' Change-Id: I4aeadfeba0dadfdf133f25e6abce90ede7a86ca6
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/filetransfer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/filetransfer.cc b/src/libstore/filetransfer.cc
index fd341b2f0..156ab6f7a 100644
--- a/src/libstore/filetransfer.cc
+++ b/src/libstore/filetransfer.cc
@@ -656,7 +656,7 @@ struct curlFileTransfer : public FileTransfer
/* Ugly hack to support s3:// URIs. */
if (request.uri.starts_with("s3://")) {
// FIXME: do this on a worker thread
- return std::async(std::launch::deferred, [uri{request.uri}] {
+ return std::async(std::launch::deferred, [uri{request.uri}]() -> FileTransferResult {
#if ENABLE_S3
auto [bucketName, key, params] = parseS3Uri(uri);