def connect(self, port: int) -> None:
    channel = grpc.insecure_channel('localhost:{}'.format(port))
    stub = pbgrpc.InternalServiceStub(channel)
    self._stub = stub
def connect(self, port: int) -> None:
    channel = grpc.insecure_channel('localhost:{}'.format(port))
    stub = pbgrpc.InternalServiceStub(channel)
    self._stub = stub