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

switch balancer based on service config info #1670

Merged
merged 5 commits into from
Nov 17, 2017

Conversation

lyuxuan
Copy link
Contributor

@lyuxuan lyuxuan commented Nov 13, 2017

Update roundrobin balancer's name from roundrobin to `round_robin. To be consistent with service config spec.

clientconn.go Outdated
@@ -818,9 +817,12 @@ func (cc *ClientConn) handleServiceConfig(js string) error {
return err
}
cc.mu.Lock()
defer cc.mu.Unlock()
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't defer.
defer is slow (golang/go#14939)

@menghanl menghanl added the Type: Feature New features or improvements in behavior label Nov 16, 2017
@lyuxuan lyuxuan merged commit d6cc728 into grpc:master Nov 17, 2017
@menghanl menghanl added this to the 1.8 Release milestone Nov 20, 2017
@menghanl menghanl mentioned this pull request Nov 29, 2017
8 tasks
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Feature New features or improvements in behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants