-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[improve](http) Save the requested url in http execution error #43855 #44105
[improve](http) Save the requested url in http execution error #43855 #44105
Conversation
…e#43855) Save the requested URL in HTTP execution erro
run buildall |
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
@@ -147,7 +147,8 @@ class HttpClient { | |||
size_t on_response_data(const void* data, size_t length); | |||
|
|||
private: | |||
const char* _to_errmsg(CURLcode code); | |||
const char* _to_errmsg(CURLcode code) const; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: function '_to_errmsg' should be marked [[nodiscard]] [modernize-use-nodiscard]
const char* _to_errmsg(CURLcode code) const; | |
[[nodiscard]] const char* _to_errmsg(CURLcode code) const; |
@@ -147,7 +147,8 @@ | |||
size_t on_response_data(const void* data, size_t length); | |||
|
|||
private: | |||
const char* _to_errmsg(CURLcode code); | |||
const char* _to_errmsg(CURLcode code) const; | |||
const char* _get_url() const; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: function '_get_url' should be marked [[nodiscard]] [modernize-use-nodiscard]
const char* _get_url() const; | |
[[nodiscard]] const char* _get_url() const; |
TeamCity be ut coverage result: |
cherry pick from #43855