mirror of https://github.com/grpc/grpc-go.git
addressed the comments
This commit is contained in:
parent
f5c974be39
commit
a4e91b9724
|
|
@ -194,9 +194,9 @@ func (rr *roundRobin) watchAddrUpdates() error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Make a copy of rr.addrs and write it onto rr.addrCh so that gRPC internals gets notified.
|
// Make a copy of rr.addrs and write it onto rr.addrCh so that gRPC internals gets notified.
|
||||||
open := make([]Address, 0, len(rr.addrs))
|
open := make([]Address, len(rr.addrs))
|
||||||
for _, v := range rr.addrs {
|
for i, v := range rr.addrs {
|
||||||
open = append(open, v.addr)
|
open[i] = v.addr
|
||||||
}
|
}
|
||||||
if rr.done {
|
if rr.done {
|
||||||
return ErrClientConnClosing
|
return ErrClientConnClosing
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue