mirror of https://github.com/grpc/grpc-node.git
Simplify getBottomInterceptingCall signature
This commit is contained in:
parent
f0fbe44134
commit
77b86fdbea
|
@ -454,11 +454,10 @@ class BaseStreamingInterceptingCall extends BaseInterceptingCall
|
|||
// tslint:disable-next-line no-any
|
||||
function getBottomInterceptingCall(
|
||||
channel: Channel,
|
||||
path: string,
|
||||
options: InterceptorOptions,
|
||||
methodDefinition: ClientMethodDefinition<any, any>
|
||||
) {
|
||||
const call = getCall(channel, path, options);
|
||||
const call = getCall(channel, methodDefinition.path, options);
|
||||
if (methodDefinition.responseStream) {
|
||||
return new BaseStreamingInterceptingCall(call, methodDefinition);
|
||||
} else {
|
||||
|
@ -554,7 +553,6 @@ export function getInterceptingCall(
|
|||
(finalOptions: InterceptorOptions) =>
|
||||
getBottomInterceptingCall(
|
||||
channel,
|
||||
methodDefinition.path,
|
||||
finalOptions,
|
||||
methodDefinition
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue