Fix grcp metadata in js client (#2243)

Signed-off-by: chiru1221 <takuro1221.it@gmail.com>
This commit is contained in:
komoto 2022-03-11 08:02:51 +09:00 committed by GitHub
parent fb31b55b54
commit d458c93dbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ response = stub.SayHello(request={ name: 'Darth Revan' }, metadata=metadata)
const metadata = new grpc.Metadata();
metadata.add('dapr-app-id', 'server');
client.sayHello({ name: "Darth Malgus", metadata })
client.sayHello({ name: "Darth Malgus" }, metadata)
```
{{% /codetab %}}