mirror of https://github.com/grpc/grpc-go.git
test: record peers by hostname in xds client (#3409)
This commit is contained in:
parent
e139b475f3
commit
2cd9da628a
|
|
@ -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++
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue