Reporting: Use g_DownloadManager instead of using a custom thread solution

This commit is contained in:
Henrik Rydgård
2024-10-28 17:02:03 +01:00
parent 56a164a14e
commit fb4c1fb63f
2 changed files with 14 additions and 33 deletions
+2 -1
View File
@@ -9,7 +9,8 @@
namespace http {
Request::Request(RequestMethod method, const std::string &url, std::string_view name, bool *cancelled, ProgressBarMode mode) : method_(method), url_(url), name_(name), progress_(cancelled), progressBarMode_(mode) {
Request::Request(RequestMethod method, const std::string &url, std::string_view name, bool *cancelled, ProgressBarMode mode)
: method_(method), url_(url), name_(name), progress_(cancelled), progressBarMode_(mode) {
INFO_LOG(Log::HTTP, "HTTP %s request: %s (%.*s)", RequestMethodToString(method), url.c_str(), (int)name.size(), name.data());
progress_.callback = [=](int64_t bytes, int64_t contentLength, bool done) {