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.
1 parent c5bdd9c commit 8ed0a50Copy full SHA for 8ed0a50
packages/grpc-js/src/server-call.ts
@@ -615,19 +615,15 @@ export class Http2ServerCallStream<
615
);
616
617
if (Buffer.isBuffer(decompressedMessage)) {
618
- call
619
- .deserializeMessageWithInternalError(decompressedMessage)
620
- .then(resolve)
621
- .catch(reject);
+ resolve(
+ call.deserializeMessageWithInternalError(decompressedMessage)
+ );
622
return;
623
}
624
625
decompressedMessage.then(
626
decompressed =>
627
628
- .deserializeMessageWithInternalError(decompressed)
629
630
- .catch(reject),
+ resolve(call.deserializeMessageWithInternalError(decompressed)),
631
(err: any) =>
632
reject(
633
err.code
0 commit comments