From 3f460716fba3ba37e7acc50c52676c6714ca9138 Mon Sep 17 00:00:00 2001 From: murgatroid99 Date: Tue, 9 Jul 2019 10:52:51 -0700 Subject: [PATCH] Remove check in grpc-js that doesn't appear in grpc --- packages/grpc-js/src/client.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/grpc-js/src/client.ts b/packages/grpc-js/src/client.ts index 5b243c38..a092e61d 100644 --- a/packages/grpc-js/src/client.ts +++ b/packages/grpc-js/src/client.ts @@ -139,11 +139,6 @@ export class Client { ); } }); - call.on('end', () => { - if (responseMessage == null) { - call.cancelWithStatus(Status.INTERNAL, 'Not enough responses received'); - } - }); call.on('status', (status: StatusObject) => { /* We assume that call emits status after it emits end, and that it * accounts for any cancelWithStatus calls up until it emits status.