From fea9638af93372a4cc05d148fe541afa5239acff Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Wed, 23 Jul 2025 12:50:51 -0500 Subject: [PATCH] refactor --- repertory/librepertory/include/comm/curl/curl_comm.hpp | 2 +- repertory/librepertory/include/comm/curl/curl_shared.hpp | 2 +- repertory/librepertory/src/comm/curl/curl_shared.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/repertory/librepertory/include/comm/curl/curl_comm.hpp b/repertory/librepertory/include/comm/curl/curl_comm.hpp index ddbbfc41..e671e646 100644 --- a/repertory/librepertory/include/comm/curl/curl_comm.hpp +++ b/repertory/librepertory/include/comm/curl/curl_comm.hpp @@ -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()); diff --git a/repertory/librepertory/include/comm/curl/curl_shared.hpp b/repertory/librepertory/include/comm/curl/curl_shared.hpp index cd25a973..d214d63c 100644 --- a/repertory/librepertory/include/comm/curl/curl_shared.hpp +++ b/repertory/librepertory/include/comm/curl/curl_shared.hpp @@ -60,7 +60,7 @@ public: [[nodiscard]] static auto init() -> bool; - static void set_cache(CURL *curl); + static void set_share(CURL *curl); }; } // namespace repertory diff --git a/repertory/librepertory/src/comm/curl/curl_shared.cpp b/repertory/librepertory/src/comm/curl/curl_shared.cpp index 19ada37a..a33d7d56 100644 --- a/repertory/librepertory/src/comm/curl/curl_shared.cpp +++ b/repertory/librepertory/src/comm/curl/curl_shared.cpp @@ -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()); }