addressed the comments

This commit is contained in:
iamqizhao 2016-06-23 11:08:27 -07:00
parent f5c974be39
commit a4e91b9724
1 changed files with 3 additions and 3 deletions

View File

@ -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