From 609b72142546c922b1ca52ac7bf9ae00c2f452c0 Mon Sep 17 00:00:00 2001 From: Linus Heckemann Date: Fri, 31 May 2024 19:30:35 +0200 Subject: libstore/filetransfer: fix no-s3 build Fixes a compiler error that looks like: error: could not convert '[...]' from 'future' to 'future' Change-Id: I4aeadfeba0dadfdf133f25e6abce90ede7a86ca6 --- src/libstore/filetransfer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3