We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 41dae58 + 44126e9 commit 564d43dCopy full SHA for 564d43d
packages/microservices/client/client-grpc.ts
@@ -65,9 +65,12 @@ export class ClientGrpcProxy extends ClientProxy implements ClientGrpc {
65
if (!this.grpcClient[name]) {
66
throw new InvalidGrpcServiceException();
67
}
68
+ const credentials =
69
+ options.credentials || grpcPackage.credentials.createInsecure();
70
+ delete options.credentials;
71
const grpcClient = new this.grpcClient[name](
72
this.url,
- options.credentials || grpcPackage.credentials.createInsecure(),
73
+ credentials,
74
options,
75
);
76
const protoMethods = Object.keys(this.grpcClient[name].prototype);
0 commit comments