Revert changes to helloworld example

pull/19299/head
Lidi Zheng 5 years ago
parent 42e8bd21b4
commit 1e62124cfb
  1. 7
      examples/python/helloworld/greeter_server.py

@ -36,8 +36,11 @@ def serve():
helloworld_pb2_grpc.add_GreeterServicer_to_server(Greeter(), server)
server.add_insecure_port('[::]:50051')
server.start()
server.wait_for_termination()
try:
while True:
time.sleep(_ONE_DAY_IN_SECONDS)
except KeyboardInterrupt:
server.stop(0)
if __name__ == '__main__':

Loading…
Cancel
Save