Skip to content

Commit

Permalink
chore(grpc): lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingsong committed Nov 13, 2024
1 parent 207e025 commit 18399b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/grpc/src/comsumer/clients.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export class GRPCClients extends Map {
const rpcMethod = options.metadata.get('rpc.method.type')?.[0];
switch (genericFunctionSelector) {
case 0:
if (! rpcMethod) {
if (!rpcMethod) {
options.metadata.set('rpc.method.type', 'unary');
}
genericFunctionName = new ClientUnaryRequest(
Expand All @@ -126,7 +126,7 @@ export class GRPCClients extends Map {
);
break;
case 1:
if (! rpcMethod) {
if (!rpcMethod) {
options.metadata.set('rpc.method.type', 'server'); // server streaming
}
genericFunctionName = new ClientReadableRequest(
Expand All @@ -136,7 +136,7 @@ export class GRPCClients extends Map {
);
break;
case 2:
if (! rpcMethod) {
if (!rpcMethod) {
options.metadata.set('rpc.method.type', 'client'); // client streaming
}
genericFunctionName = new ClientWritableRequest(
Expand All @@ -146,7 +146,7 @@ export class GRPCClients extends Map {
);
break;
case 3:
if (! rpcMethod) {
if (!rpcMethod) {
options.metadata.set('rpc.method.type', 'bidi'); // bidirectional streaming
}
genericFunctionName = new ClientDuplexStreamRequest(
Expand Down

0 comments on commit 18399b7

Please sign in to comment.