예제 #1
0
 def __init__(self, url):
     self.address = url
     self.channel = grpc.insecure_channel(url)
     self.stub = controller_pb2_grpc.ControllerServiceStub(self.channel)
예제 #2
0
 def client_upgrade(self, address):
     self.address = address
     self.channel = grpc.insecure_channel(address)
     self.stub = controller_pb2_grpc.ControllerServiceStub(self.channel)