Skip to content

Conversation

jonnxu
Copy link
Contributor

@jonnxu jonnxu commented Jul 29, 2019

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.

  • Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
  • Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Write necessary unit-test(over 80% coverage) to verify your logic correction, more mock a little better when a cross-module dependency exists.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

Copy link
Contributor

@jovany-wang jovany-wang left a 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.

};
#endif
#endif //__C_CLIENT_ERROR_H__
#endif //__C_CLIENT_ERROR_H__
Copy link
Contributor

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.

void setErr(std::string str);

std::string getErr();
std::string getErr();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

std::string getErr() const;

}

for (int i = 0; i < m_namesrvAddrList.size(); i++) {
for (unsigned i = 0; i < m_namesrvAddrList.size(); i++) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

size_t is better

@jonnxu
Copy link
Contributor Author

jonnxu commented Aug 5, 2019

see #172
#172

@jonnxu jonnxu closed this Aug 5, 2019
@ShannonDing
Copy link
Member

it seems duplicated with #172 , could you please check and close one of them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants