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

DownloadResult -> DataTransferResult

This commit is contained in:
Nikola Knezevic 2020-04-06 15:18:51 +02:00
parent e5cc53beec
commit 142ed7fe45
5 changed files with 19 additions and 19 deletions

View file

@ -143,7 +143,7 @@ protected:
auto callbackPtr = std::make_shared<decltype(callback)>(std::move(callback));
getDownloader()->enqueueDownload(request,
{[callbackPtr, this](std::future<DownloadResult> result) {
{[callbackPtr, this](std::future<DataTransferResult> result) {
try {
(*callbackPtr)(result.get().data);
} catch (DownloadError & e) {