I been using a tutorial on gRPC, and been trying an example but can't seem to get the below code to work.
def run():
# NOTE(gRPC Python Team): .close() is possible on a channel and should be
# used in circumstances in which the with statement does not fit the needs
# of the code.
with grpc.insecure_channel('localhost:50051') as channel:
stub = helloworld_pb2_grpc.GreeterStub(channel)
response = stub.SayHello(helloworld_pb2.HelloRequest(name='you'))
response2 = stub.SayHelloAgain(helloworld_pb2.HelloRequest(name='you'))
print("Greeter client received: " + response.message)
print("Greeter client received: " + response2.message)
I keep getting this error:
File "greeter_client.py", line 32
response2 = stub.SayHelloAgain(helloworld_pb2.HelloRequest(name='you'))
^
IndentationError: unexpected indent