diff options
author | murgatroid99 <michael.lumish@gmail.com> | 2017-01-17 12:02:50 -0800 |
---|---|---|
committer | murgatroid99 <michael.lumish@gmail.com> | 2017-01-17 12:02:50 -0800 |
commit | 58233dbc1a7893756d33ecfc1ec7ffe6607c3168 (patch) | |
tree | 8e966022d92babe3fef8b956e78839b425d0c996 /examples/python/multiplex/multiplex_client.py | |
parent | c781f6451887ee5b47623c511ba337b08532f583 (diff) | |
parent | 1e2775861fbdbaa6f00553b5eaf708e46efc10a6 (diff) |
Merge branch 'master' into makefile_ruby_version_fixes
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) |