mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
refactor(microservices) use delete instead of object destructing
This commit is contained in:
@@ -85,11 +85,11 @@ export class ClientGrpcProxy extends ClientProxy implements ClientGrpc {
|
||||
const credentials =
|
||||
options.credentials || grpcPackage.credentials.createInsecure();
|
||||
|
||||
const { credentials: originalCreds, ...clientOptions } = options;
|
||||
delete options.credentials;
|
||||
const grpcClient = new this.grpcClient[name](
|
||||
this.url,
|
||||
credentials,
|
||||
clientOptions,
|
||||
options,
|
||||
);
|
||||
this.clients.set(name, grpcClient);
|
||||
return grpcClient;
|
||||
|
||||
Reference in New Issue
Block a user