Skip to content

Commit 7474406

Browse files
committed
chore: rename curl handler function
[skip ci]
1 parent f14d6d4 commit 7474406

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/functions/get_tranco.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace duckdb
1414
// Function to get the download code for the Tranco list
1515
std::string GetTrancoDownloadCode (char *date)
1616
{
17-
CURL *curl = GetCurlHandler ();
17+
CURL *curl = CreateCurlHandler ();
1818
CURLcode res;
1919
std::string readBuffer;
2020

src/utils/utils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace duckdb
2929
#endif
3030
}
3131

32-
CURL *GetCurlHandler ()
32+
CURL *CreateCurlHandler ()
3333
{
3434
CURL *curl = curl_easy_init ();
3535
if (!curl)
@@ -98,7 +98,7 @@ namespace duckdb
9898

9999
std::string DownloadPublicSuffixList ()
100100
{
101-
CURL *curl = GetCurlHandler ();
101+
CURL *curl = CreateCurlHandler ();
102102
CURLcode res;
103103
std::string readBuffer;
104104

src/utils/utils.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace duckdb
99
namespace netquack
1010
{
1111
// Function to get a CURL handler
12-
CURL *GetCurlHandler ();
12+
CURL *CreateCurlHandler ();
1313

1414
// Function to log messages with a specified log level
1515
void LogMessage (const std::string &level, const std::string &message);

0 commit comments

Comments
 (0)