test: record peers by hostname in xds client (#3409)
This commit is contained in:
@ -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++
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user