aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-04-05 12:24:25 -0700
committerGravatar Craig Tiller <ctiller@google.com>2017-04-05 12:24:25 -0700
commit0357187b4e5226e04cee4dbed79aee30cdb1522f (patch)
treed7bf370add690a3261adae96be9b7fdcb417efbd /src/python
parent6f9bb71c2bb3aeeee5d6dc0fee7ff1d81d2b3b41 (diff)
parentf8af6d9cf8d461ff3d93490583760c1f089452b6 (diff)
Merge github.com:grpc/grpc into minimal_test
Diffstat (limited to 'src/python')
-rw-r--r--src/python/grpcio_reflection/grpc_reflection/v1alpha/reflection.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/python/grpcio_reflection/grpc_reflection/v1alpha/reflection.py b/src/python/grpcio_reflection/grpc_reflection/v1alpha/reflection.py
index c8ad9668ac..c58cb3ecf1 100644
--- a/src/python/grpcio_reflection/grpc_reflection/v1alpha/reflection.py
+++ b/src/python/grpcio_reflection/grpc_reflection/v1alpha/reflection.py
@@ -143,12 +143,13 @@ class ReflectionServicer(reflection_pb2.ServerReflectionServicer):
.encode(),))
-def enable_server_reflection(service_names, server):
+def enable_server_reflection(service_names, server, pool=None):
"""Enables server reflection on a server.
Args:
service_names: Iterable of fully-qualified service names available.
server: grpc.Server to which reflection service will be added.
+ pool: DescriptorPool object to use (descriptor_pool.Default() if None).
"""
reflection_pb2_grpc.add_ServerReflectionServicer_to_server(
- ReflectionServicer(service_names), server)
+ ReflectionServicer(service_names), server, pool)