-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
resolver: remove deprecated AddressType #6451
Conversation
Fix vet failure:
Also, I don't see a deletion of the |
Whoops. I had deleted it, but I put it back later and forgot to remove it again. Also forgot to add |
@@ -114,6 +115,7 @@ func (b *pickfirstBalancer) UpdateClientConnState(state balancer.ClientConnState | |||
} | |||
|
|||
if envconfig.PickFirstLBConfig && b.cfg != nil && b.cfg.ShuffleAddressList { | |||
addrs = append([]resolver.Address{}, addrs...) |
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.
This is nice. Didn't know this trick before. I would have written this as a two-liner with a make
and copy
.
The type attribute has been removed in more recent versions of gRPC. The usage here is not required and the may be removed. See: grpc/grpc-go#6451
The type attribute has been removed in more recent versions of gRPC. The usage here is not required and the may be removed. See: grpc/grpc-go#6451
Some minor clean-up ahead of the upcoming dual-stack changes.
RELEASE NOTES:
balancer/grpclb/state.Set()
should be used to add these addresses to the name resolver's output. The built-in "dns" name resolver already does this.