Skip to content

Commit

Permalink
[xds_interop_client_rpc_metadata] by_type -> by_method
Browse files Browse the repository at this point in the history
  • Loading branch information
menghanl committed Jul 15, 2020
1 parent 86121dc commit 78a567e
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 78 deletions.
147 changes: 74 additions & 73 deletions interop/grpc_testing/test.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions interop/grpc_testing/test.proto
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ message LoadBalancerStatsResponse {
map<string, int32> rpcs_by_peer = 1;
// The number of RPCs that failed to record a remote peer.
int32 num_failures = 2;
// The number of completed RPCs for each type (UnaryCall or EmptyCall).
map<string, RpcsByPeer> rpcs_by_type = 3;
// The number of completed RPCs for each method (UnaryCall or EmptyCall).
map<string, RpcsByPeer> rpcs_by_method = 3;
}

// A service used to obtain stats for verifying LB behavior.
Expand Down
6 changes: 3 additions & 3 deletions interop/xds/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ func (watcher *statsWatcher) buildResp() *testpb.LoadBalancerStatsResponse {
}

return &testpb.LoadBalancerStatsResponse{
NumFailures: watcher.numFailures + watcher.remainingRpcs,
RpcsByPeer: watcher.rpcsByPeer,
RpcsByType: rpcsByType,
NumFailures: watcher.numFailures + watcher.remainingRpcs,
RpcsByPeer: watcher.rpcsByPeer,
RpcsByMethod: rpcsByType,
}
}

Expand Down

0 comments on commit 78a567e

Please sign in to comment.