We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efeb242 commit 04d8636Copy full SHA for 04d8636
examples/helloworld/python/greeter_client.py
@@ -33,14 +33,14 @@
33
34
import grpc
35
36
-#import helloworld_pb2
37
from examples.helloworld.proto import helloworld_pb2
38
+
39
def run():
40
- channel = grpc.insecure_channel('localhost:50051')
41
- stub = helloworld_pb2.GreeterStub(channel)
42
- response = stub.SayHello(helloworld_pb2.HelloRequest(name='you'))
43
- print("Greeter client received: " + response.message)
+ channel = grpc.insecure_channel('localhost:50051')
+ stub = helloworld_pb2.GreeterStub(channel)
+ response = stub.SayHello(helloworld_pb2.HelloRequest(name='you'))
+ print("Greeter client received: " + response.message)
44
45
if __name__ == '__main__':
46
- run()
+ run()
0 commit comments