test: record peers by hostname in xds client (#3409)

This commit is contained in:
Eric Gribkoff
2020-02-28 14:51:49 -08:00
committed by GitHub
parent e139b475f3
commit 2cd9da628a

View File

@ -94,7 +94,7 @@ func (s *statsService) GetClientStats(ctx context.Context, in *testpb.LoadBalanc
select { select {
case r := <-watcher.c: case r := <-watcher.c:
if r != nil { if r != nil {
watcher.rpcsByPeer[(*r).GetServerId()]++ watcher.rpcsByPeer[(*r).GetHostname()]++
} else { } else {
watcher.numFailures++ watcher.numFailures++
} }