Skip to content

Commit

Permalink
Code review
Browse files Browse the repository at this point in the history
  • Loading branch information
Hind-M committed Apr 4, 2023
1 parent 19b872d commit d6b2a12
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion libmamba/include/mamba/core/util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ namespace mamba

std::optional<std::string> proxy_match(const std::string& url);

std::string hide_secrets(const std::string_view& str);
std::string hide_secrets(std::string_view str);

class non_copyable_base
{
Expand Down
6 changes: 3 additions & 3 deletions libmamba/src/core/curl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ namespace mamba
{
namespace curl
{
void set_curl_handle(
void configure_curl_handle(
CURL* handle,
const std::string& url,
const bool set_low_speed_opt,
const long& connect_timeout_secs,
const long connect_timeout_secs,
const bool ssl_no_revoke,
const std::optional<std::string> proxy,
const std::optional<std::string>& proxy,
const std::string& ssl_verify
)
{
Expand Down
6 changes: 3 additions & 3 deletions libmamba/src/core/curl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ namespace mamba
{
namespace curl
{
void set_curl_handle(
void configure_curl_handle(
CURL* handle,
const std::string& url,
const bool set_low_speed_opt,
const long& connect_timeout_secs,
const long connect_timeout_secs,
const bool ssl_no_revoke,
const std::optional<std::string> proxy,
const std::optional<std::string>& proxy,
const std::string& ssl_verify
);
}
Expand Down
2 changes: 1 addition & 1 deletion libmamba/src/core/fetch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ namespace mamba
: "0";
bool set_ssl_no_revoke = (Context::instance().ssl_no_revoke || ssl_no_revoke_env != "0");

curl::set_curl_handle(
curl::configure_curl_handle(
handle,
url,
(no_low_speed_limit == "0"),
Expand Down
2 changes: 1 addition & 1 deletion libmamba/src/core/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1553,7 +1553,7 @@ namespace mamba
return std::nullopt;
}

std::string hide_secrets(const std::string_view& str)
std::string hide_secrets(std::string_view str)
{
std::string copy(str);

Expand Down

0 comments on commit d6b2a12

Please sign in to comment.