From 7c794b970063c15042b464770eede769a0e6a383 Mon Sep 17 00:00:00 2001 From: Stanley Cheung Date: Mon, 17 Aug 2020 18:45:12 +0000 Subject: [PATCH] Review fixes --- src/ruby/pb/test/xds_client.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ruby/pb/test/xds_client.rb b/src/ruby/pb/test/xds_client.rb index 54bf27df299..2f15c5fa522 100755 --- a/src/ruby/pb/test/xds_client.rb +++ b/src/ruby/pb/test/xds_client.rb @@ -98,7 +98,7 @@ class TestTarget < Grpc::Testing::LoadBalancerStatsService::Service end # convert results into proper proto object rpcs_by_method = {} - watcher['rpcs_by_method'].each do | rpc_name, rpcs_by_peer | + watcher['rpcs_by_method'].each do |rpc_name, rpcs_by_peer| rpcs_by_method[rpc_name] = LoadBalancerStatsResponse::RpcsByPeer.new( rpcs_by_peer: rpcs_by_peer ) @@ -173,7 +173,7 @@ def run_test_loop(stub, target_seconds_between_rpcs, fail_on_failed_rpcs, $watchers.each do |watcher| # this is counted once when each group of all rpcs_to_send were done watcher['rpcs_needed'] -= 1 - results.each do | rpc_name, remote_peer | + results.each do |rpc_name, remote_peer| if remote_peer.strip.empty? # error is counted per individual RPC watcher['no_remote_peer'] += 1