Exemple #1
0
 def __init__(self, address):
     channel = grpc.insecure_channel(
         address,
         options=[('grpc.max_send_message_length', 1024**3),
                  ('grpc.max_receive_message_length', 1024**3)])
     self.stub = chunk_pb2_grpc.FileServerStub(channel)
     # default chunk size of 1 MB
     self.chunk_size = 1024**2
     self.response_cbs = []
 def __init__(self, address):
     channel = grpc.insecure_channel(address)
     self.stub = chunk_pb2_grpc.FileServerStub(channel)