Skip to content
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

remove default value for systerm server and use seed server instead if not configured. #4

Merged
merged 3 commits into from
Sep 23, 2021

Conversation

wssgyyg
Copy link
Contributor

@wssgyyg wssgyyg commented Sep 17, 2021

remove default value for systerm server and use seed server instead if not configured.

@@ -553,6 +553,12 @@ void GrpcServerConnector::TimingServerSwitch(GrpcServerConnector* server_connect

ReturnCode GrpcServerConnector::SelectInstance(const ServiceKey& service_key, uint32_t timeout,
Instance** instance, bool ignore_half_open) {
// 支持standalone模式,如果service_name为空,则直接返回埋点服务实例
if (service_key.name_.length() <= 0) {

Choose a reason for hiding this comment

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

"service_key.name_.length() <= 0" switch to "service_key.name_.empty()", could be better?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

"service_key.name_.length() <= 0" switch to "service_key.name_.empty()", could be better?

fixed~

@wssgyyg wssgyyg closed this Sep 23, 2021
@wssgyyg wssgyyg reopened this Sep 23, 2021
@wssgyyg wssgyyg merged commit 876169f into polarismesh:main Sep 23, 2021
@wssgyyg
Copy link
Contributor Author

wssgyyg commented Sep 23, 2021

#3 solved

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.

2 participants