From 2cd9da628aff65c0bdece69044de86dfb9ef0c9c Mon Sep 17 00:00:00 2001 From: Eric Gribkoff Date: Fri, 28 Feb 2020 14:51:49 -0800 Subject: [PATCH] test: record peers by hostname in xds client (#3409) --- interop/xds/client/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interop/xds/client/client.go b/interop/xds/client/client.go index bf7e67dd..0164cb4b 100644 --- a/interop/xds/client/client.go +++ b/interop/xds/client/client.go @@ -94,7 +94,7 @@ func (s *statsService) GetClientStats(ctx context.Context, in *testpb.LoadBalanc select { case r := <-watcher.c: if r != nil { - watcher.rpcsByPeer[(*r).GetServerId()]++ + watcher.rpcsByPeer[(*r).GetHostname()]++ } else { watcher.numFailures++ }