mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
fix(microservices): grpc client closing
This commit is contained in:
@@ -330,9 +330,10 @@ export class ClientGrpcProxy extends ClientProxy implements ClientGrpc {
|
||||
}
|
||||
|
||||
public close() {
|
||||
this.grpcClients
|
||||
.filter(client => client && isFunction(client.close))
|
||||
.forEach(client => client.close());
|
||||
this.clients.forEach(
|
||||
client => client && isFunction(client.close) && client.close(),
|
||||
);
|
||||
this.clients.clear();
|
||||
this.grpcClients = [];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user