-
Notifications
You must be signed in to change notification settings - Fork 165
Format the code and remove warnings #169
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
Conversation
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.
Left some minor comments. Others looks fine to me overall.
include/CErrorMessage.h
Outdated
#endif //__C_CLIENT_ERROR_H__ |
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.
Append a new blank line at the end of this file.
|
||
std::string getErr(); | ||
std::string getErr(); |
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.
std::string getErr() const;
@@ -373,7 +373,7 @@ std::shared_ptr<TcpTransport> TcpRemotingClient::CreateNameServerTransport(bool | |||
m_namesrvAddrChoosed.clear(); | |||
} | |||
|
|||
for (int i = 0; i < m_namesrvAddrList.size(); i++) { | |||
for (unsigned i = 0; i < m_namesrvAddrList.size(); i++) { |
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.
size_t is better
it seems duplicated with #172 , could you please check and close one of them. |
What is the purpose of the change
Format the code and remove warnings
Brief changelog
MQClientErrorContainer.cpp
MQClientErrorContainer.h
.........
Verifying this change
success
Follow this checklist to help us incorporate your contribution quickly and easily. Notice,
it would be helpful if you could finish the following 5 checklist(the last one is not necessary)before request the community to review your PR
.[ISSUE #123] Fix UnknownException when host config not exist
. Each commit in the pull request should have a meaningful subject line and body.