Skip to content

Commit 04d8636

Browse files
author
Nikos Michalakis
committed
Clean up greeter_client.py
- removed commented out code - fixed spacing
1 parent efeb242 commit 04d8636

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/helloworld/python/greeter_client.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@
3333

3434
import grpc
3535

36-
#import helloworld_pb2
3736
from examples.helloworld.proto import helloworld_pb2
3837

38+
3939
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)
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)
4444

4545
if __name__ == '__main__':
46-
run()
46+
run()

0 commit comments

Comments
 (0)