refactor
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good
BlockStorage/repertory/pipeline/pr-master This commit looks good

This commit is contained in:
2025-07-23 12:50:51 -05:00
parent f94d3be7dc
commit fea9638af9
3 changed files with 3 additions and 3 deletions

View File

@@ -211,7 +211,7 @@ public:
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, header_list);
}
curl_shared::set_cache(curl);
curl_shared::set_share(curl);
auto url = construct_url(curl, request.get_path(), cfg) + parameters;
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());

View File

@@ -60,7 +60,7 @@ public:
[[nodiscard]] static auto init() -> bool;
static void set_cache(CURL *curl);
static void set_share(CURL *curl);
};
} // namespace repertory

View File

@@ -60,7 +60,7 @@ void curl_shared::lock_callback(CURL * /* curl */, curl_lock_data data,
mtx_.lock();
}
void curl_shared::set_cache(CURL *curl) {
void curl_shared::set_share(CURL *curl) {
curl_easy_setopt(curl, CURLOPT_SHARE, cache_.get());
}