Merge pull request #948 from murgatroid99/grpc-js_no_arity_check

Remove check in grpc-js that doesn't appear in grpc
This commit is contained in:
Michael Lumish 2019-07-09 14:10:06 -07:00 committed by GitHub
commit 6b24e57e3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.