xDS interop client: fix handling of metadata argument

This commit is contained in:
Michael Lumish 2021-03-30 00:10:13 -07:00
parent 506982107f
commit 30a90d8aaa
1 changed files with 1 additions and 1 deletions

View File

@ -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;