Fix missing step in docs (#1113)

As far as I can tell, the tutorial in the docs doesn't actually work
without this line.
This commit is contained in:
Michael Stella 2020-09-15 10:20:47 -04:00 committed by GitHub
parent efd0520445
commit a50fe55929
1 changed files with 1 additions and 0 deletions

View File

@ -106,6 +106,7 @@ Usage Server
def serve(): def serve():
server = grpc.server(futures.ThreadPoolExecutor()) server = grpc.server(futures.ThreadPoolExecutor())
server = intercept_server(server, server_interceptor())
helloworld_pb2_grpc.add_GreeterServicer_to_server(Greeter(), server) helloworld_pb2_grpc.add_GreeterServicer_to_server(Greeter(), server)
server.add_insecure_port("[::]:50051") server.add_insecure_port("[::]:50051")