diff options
author | murgatroid99 <mlumish@google.com> | 2017-01-04 15:43:02 -0800 |
---|---|---|
committer | murgatroid99 <mlumish@google.com> | 2017-01-04 15:43:02 -0800 |
commit | c34cac28912595814fb35225957eed0ddfd5d610 (patch) | |
tree | 5b89408b87d756791e6c5dee2247bae3609565cc /examples/python/multiplex/multiplex_client.py | |
parent | 804c9e90fc4e7d11294fec69801ff7bc99134d3c (diff) | |
parent | 360f5d2abf8cb0f92aeeb3a1b201d2eb3bd13374 (diff) |
Merge branch 'master' into node_electron_build
Diffstat (limited to 'examples/python/multiplex/multiplex_client.py')
-rw-r--r-- | examples/python/multiplex/multiplex_client.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/python/multiplex/multiplex_client.py b/examples/python/multiplex/multiplex_client.py index 2e8162926b..b2d2021e02 100644 --- a/examples/python/multiplex/multiplex_client.py +++ b/examples/python/multiplex/multiplex_client.py @@ -37,7 +37,9 @@ import time import grpc import helloworld_pb2 +import helloworld_pb2_grpc import route_guide_pb2 +import route_guide_pb2_grpc import route_guide_resources @@ -120,8 +122,8 @@ def guide_route_chat(route_guide_stub): def run(): channel = grpc.insecure_channel('localhost:50051') - greeter_stub = helloworld_pb2.GreeterStub(channel) - route_guide_stub = route_guide_pb2.RouteGuideStub(channel) + greeter_stub = helloworld_pb2_grpc.GreeterStub(channel) + route_guide_stub = route_guide_pb2_grpc.RouteGuideStub(channel) greeter_response = greeter_stub.SayHello( helloworld_pb2.HelloRequest(name='you')) print("Greeter client received: " + greeter_response.message) |