From 30a90d8aaaec486bfb22863f77687c0ab9e1454b Mon Sep 17 00:00:00 2001 From: Michael Lumish Date: Tue, 30 Mar 2021 00:10:13 -0700 Subject: [PATCH] xDS interop client: fix handling of metadata argument --- packages/grpc-js-xds/interop/xds-interop-client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/grpc-js-xds/interop/xds-interop-client.ts b/packages/grpc-js-xds/interop/xds-interop-client.ts index a7aa7470..5f32831c 100644 --- a/packages/grpc-js-xds/interop/xds-interop-client.ts +++ b/packages/grpc-js-xds/interop/xds-interop-client.ts @@ -281,7 +281,7 @@ function main() { .argv; console.log('Starting xDS interop client. Args: ', argv); currentConfig.callTypes = argv.rpc.split(',').filter(value => value === 'EmptyCall' || value === 'UnaryCall') as CallType[]; - for (const item in argv.metadata.split(',')) { + for (const item of argv.metadata.split(',')) { const [method, key, value] = item.split(':'); if (value === undefined) { continue;