Skip to content

Commit

Permalink
Renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
aiguofer committed Feb 6, 2023
1 parent b42e51f commit 7db9f18
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -722,12 +722,12 @@ public FlightClient build() {
}

/**
* Helper method to create a call from a starting stub, method descriptor, and list of calling options.
* Helper method to create a call from the asyncStub, method descriptor, and list of calling options.
*/
private <RequestT, ResponseT> ClientCall<RequestT, ResponseT> asyncStubNewCall(
MethodDescriptor<RequestT, ResponseT> descriptor,
CallOption... options) {
FlightServiceStub newStub = CallOptions.wrapStub(asyncStub, options);
return newStub.getChannel().newCall(descriptor, newStub.getCallOptions());
FlightServiceStub wrappedStub = CallOptions.wrapStub(asyncStub, options);
return wrappedStub.getChannel().newCall(descriptor, wrappedStub.getCallOptions());
}
}

0 comments on commit 7db9f18

Please sign in to comment.