mirror of https://github.com/grpc/grpc-node.git
grpc-js: Remove redundant calls to setCredentials
This commit is contained in:
parent
8a312e63b7
commit
59a2cbceeb
|
@ -198,8 +198,6 @@ export interface InterceptingCallInterface {
|
|||
sendMessage(message: any): void;
|
||||
startRead(): void;
|
||||
halfClose(): void;
|
||||
|
||||
setCredentials(credentials: CallCredentials): void;
|
||||
}
|
||||
|
||||
export class InterceptingCall implements InterceptingCallInterface {
|
||||
|
@ -337,9 +335,6 @@ export class InterceptingCall implements InterceptingCallInterface {
|
|||
}
|
||||
});
|
||||
}
|
||||
setCredentials(credentials: CallCredentials): void {
|
||||
this.nextCall.setCredentials(credentials);
|
||||
}
|
||||
}
|
||||
|
||||
function getCall(channel: Channel, path: string, options: CallOptions): Call {
|
||||
|
@ -371,9 +366,6 @@ class BaseInterceptingCall implements InterceptingCallInterface {
|
|||
getPeer(): string {
|
||||
return this.call.getPeer();
|
||||
}
|
||||
setCredentials(credentials: CallCredentials): void {
|
||||
this.call.setCredentials(credentials);
|
||||
}
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
sendMessageWithContext(context: MessageContext, message: any): void {
|
||||
let serialized: Buffer;
|
||||
|
|
|
@ -321,9 +321,6 @@ export class Client {
|
|||
* before calling the CallInvocationTransformer, and we need to create the
|
||||
* call after that. */
|
||||
emitter.call = call;
|
||||
if (callProperties.callOptions.credentials) {
|
||||
call.setCredentials(callProperties.callOptions.credentials);
|
||||
}
|
||||
let responseMessage: ResponseType | null = null;
|
||||
let receivedStatus = false;
|
||||
const callerStackError = new Error();
|
||||
|
@ -449,9 +446,6 @@ export class Client {
|
|||
* before calling the CallInvocationTransformer, and we need to create the
|
||||
* call after that. */
|
||||
emitter.call = call;
|
||||
if (callProperties.callOptions.credentials) {
|
||||
call.setCredentials(callProperties.callOptions.credentials);
|
||||
}
|
||||
let responseMessage: ResponseType | null = null;
|
||||
let receivedStatus = false;
|
||||
const callerStackError = new Error();
|
||||
|
@ -582,9 +576,6 @@ export class Client {
|
|||
* before calling the CallInvocationTransformer, and we need to create the
|
||||
* call after that. */
|
||||
stream.call = call;
|
||||
if (callProperties.callOptions.credentials) {
|
||||
call.setCredentials(callProperties.callOptions.credentials);
|
||||
}
|
||||
let receivedStatus = false;
|
||||
const callerStackError = new Error();
|
||||
call.start(callProperties.metadata, {
|
||||
|
@ -681,9 +672,6 @@ export class Client {
|
|||
* before calling the CallInvocationTransformer, and we need to create the
|
||||
* call after that. */
|
||||
stream.call = call;
|
||||
if (callProperties.callOptions.credentials) {
|
||||
call.setCredentials(callProperties.callOptions.credentials);
|
||||
}
|
||||
let receivedStatus = false;
|
||||
const callerStackError = new Error();
|
||||
call.start(callProperties.metadata, {
|
||||
|
|
Loading…
Reference in New Issue