Fix access to empty list in proto (#25625)

pull/25630/head
Stanley Cheung 4 years ago committed by GitHub
parent 40bc4624c2
commit e6e82104e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/ruby/pb/test/xds_client.rb

@ -114,7 +114,7 @@ class ConfigureTarget < Grpc::Testing::XdsUpdateClientConfigureService::Service
def configure(req, _call)
metadata_to_send = {}
req['metadata'].each do |m|
req.metadata.each do |m|
rpc = m.type
if !metadata_to_send.key?(rpc)
metadata_to_send[rpc] = {}

Loading…
Cancel
Save