Stop using grpc::internal::ClientAsyncResponseReaderFactory (deprecated)

PiperOrigin-RevId: 347889706
Change-Id: Ic1c80f89a43e6c969b4c6baa030b7d806c102eb6
This commit is contained in:
Michael Banfield 2020-12-16 13:45:42 -08:00 committed by TensorFlower Gardener
parent a6f19040f8
commit 39d6ff7ac5

View File

@ -66,12 +66,9 @@ grpc::TpuCompilationCacheService::Stub::Stub(
grpc::TpuCompilationCacheService::Stub::AsyncGetTpuProgramRaw(
::grpc::ClientContext* context, const RequestType& request,
::grpc::CompletionQueue* cq) {
::grpc::ClientAsyncResponseReader<
grpc::TpuCompilationCacheService::ResponseType>* result =
::grpc::internal::ClientAsyncResponseReaderHelper::Create<ResponseType>(
channel_.get(), cq, rpcmethod_get_tpu_program_, context, request);
result->StartCall();
return result;
return ::grpc::internal::ClientAsyncResponseReaderFactory<
ResponseType>::Create(channel_.get(), cq, rpcmethod_get_tpu_program_,
context, request, true);
}
::grpc::ClientAsyncResponseReader<
@ -79,9 +76,9 @@ grpc::TpuCompilationCacheService::Stub::AsyncGetTpuProgramRaw(
grpc::TpuCompilationCacheService::Stub::PrepareAsyncGetTpuProgramRaw(
::grpc::ClientContext* context, const RequestType& request,
::grpc::CompletionQueue* cq) {
return ::grpc::internal::ClientAsyncResponseReaderHelper::Create<
ResponseType>(channel_.get(), cq, rpcmethod_get_tpu_program_, context,
request);
return ::grpc::internal::ClientAsyncResponseReaderFactory<
ResponseType>::Create(channel_.get(), cq, rpcmethod_get_tpu_program_,
context, request, false);
}
grpc::TpuCompilationCacheService::Service::Service() {