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 9269f3a commit caf37e4Copy full SHA for caf37e4
packages/grpc-js/src/channel.ts
@@ -68,7 +68,7 @@ function getNewCallNumber(): number {
68
return callNumber;
69
}
70
71
-const INAPPPROPRIATE_CONTROL_PLANE_CODES: Status[] = [
+const INAPPROPRIATE_CONTROL_PLANE_CODES: Status[] = [
72
Status.OK,
73
Status.INVALID_ARGUMENT,
74
Status.NOT_FOUND,
@@ -80,7 +80,7 @@ const INAPPPROPRIATE_CONTROL_PLANE_CODES: Status[] = [
80
]
81
82
function restrictControlPlaneStatusCode(code: Status, details: string): {code: Status, details: string} {
83
- if (INAPPPROPRIATE_CONTROL_PLANE_CODES.includes(code)) {
+ if (INAPPROPRIATE_CONTROL_PLANE_CODES.includes(code)) {
84
return {
85
code: Status.INTERNAL,
86
details: `Invalid status from control plane: ${code} ${Status[code]} ${details}`
0 commit comments