aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/verbs
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-11-13 14:21:04 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-11-13 14:25:14 -0800
commit061c3597b84d45a9878b8adf831e39a5573859ec (patch)
tree333b9ddfc726893ebd76dee22129321a7fba52bc /tensorflow/contrib/verbs
parent9642c1c0164ac87acfff2d52f82626eb38667dd8 (diff)
Upgrade gRPC version used in OSS. Fix-forward of #14262. Remove namespace-compatibility hack.
PiperOrigin-RevId: 175586521
Diffstat (limited to 'tensorflow/contrib/verbs')
-rw-r--r--tensorflow/contrib/verbs/grpc_verbs_service_impl.cc9
-rw-r--r--tensorflow/contrib/verbs/grpc_verbs_service_impl.h11
2 files changed, 5 insertions, 15 deletions
diff --git a/tensorflow/contrib/verbs/grpc_verbs_service_impl.cc b/tensorflow/contrib/verbs/grpc_verbs_service_impl.cc
index cff765d1e8..991f9a9d8b 100644
--- a/tensorflow/contrib/verbs/grpc_verbs_service_impl.cc
+++ b/tensorflow/contrib/verbs/grpc_verbs_service_impl.cc
@@ -43,22 +43,21 @@ VerbsService::Stub::Stub(
const std::shared_ptr< ::grpc::ChannelInterface>& channel)
: channel_(channel),
rpcmethod_GetRemoteAddress_(grpcVerbsService_method_names[0],
- ::grpc::RpcMethod::NORMAL_RPC,
+ ::grpc::internal::RpcMethod::NORMAL_RPC,
channel) {}
::grpc::Status VerbsService::Stub::GetRemoteAddress(
::grpc::ClientContext* context, const GetRemoteAddressRequest& request,
GetRemoteAddressResponse* response) {
- return ::grpc::BlockingUnaryCall(
+ return ::grpc::internal::BlockingUnaryCall(
channel_.get(), rpcmethod_GetRemoteAddress_, context, request, response);
}
VerbsService::AsyncService::AsyncService() {
for (int i = 0; i < 1; ++i) {
- AddMethod(new ::grpc::RpcServiceMethod(
+ AddMethod(new ::grpc::internal::RpcServiceMethod(
grpcVerbsService_method_names[i],
- ::grpc::RpcMethod::NORMAL_RPC,
- nullptr));
+ ::grpc::internal::RpcMethod::NORMAL_RPC, nullptr));
::grpc::Service::MarkMethodAsync(i);
}
}
diff --git a/tensorflow/contrib/verbs/grpc_verbs_service_impl.h b/tensorflow/contrib/verbs/grpc_verbs_service_impl.h
index 6e2bf86dac..86431ca030 100644
--- a/tensorflow/contrib/verbs/grpc_verbs_service_impl.h
+++ b/tensorflow/contrib/verbs/grpc_verbs_service_impl.h
@@ -28,15 +28,6 @@ limitations under the License.
#include "tensorflow/contrib/verbs/verbs_service.pb.h"
namespace grpc {
-
-// ensure internal namespace exists
-namespace internal {
-// bring in contents of external namespace
-using namespace ::grpc;
-} // namespace internal
-// bring in contents of internal namespace
-using namespace internal;
-
class CompletionQueue;
class Channel;
class RpcService;
@@ -70,7 +61,7 @@ class VerbsService GRPC_FINAL {
private:
std::shared_ptr< ::grpc::ChannelInterface> channel_;
- const ::grpc::RpcMethod rpcmethod_GetRemoteAddress_;
+ const ::grpc::internal::RpcMethod rpcmethod_GetRemoteAddress_;
};
static std::unique_ptr<Stub> NewStub(
const std::shared_ptr< ::grpc::ChannelInterface>& channel,