mirror of https://github.com/grpc/grpc-node.git
xDS interop client: fix handling of metadata argument
This commit is contained in:
parent
506982107f
commit
30a90d8aaa
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue