diff options
Diffstat (limited to 'src/libstore/download.hh')
-rw-r--r-- | src/libstore/download.hh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstore/download.hh b/src/libstore/download.hh index 7ade756fc356..01940f5447fe 100644 --- a/src/libstore/download.hh +++ b/src/libstore/download.hh @@ -42,8 +42,7 @@ struct Downloader the download. The future may throw a DownloadError exception. */ virtual void enqueueDownload(const DownloadRequest & request, - std::function<void(const DownloadResult &)> success, - std::function<void(std::exception_ptr exc)> failure) = 0; + Callback<DownloadResult> callback) = 0; std::future<DownloadResult> enqueueDownload(const DownloadRequest & request); |