tiller.py 文件源码

python
阅读 31 收藏 0 点赞 0 评论 0

项目:armada 作者: att-comdev 项目源码 文件源码
def get_channel(self):
        '''
        Return a tiller channel
        '''
        tiller_ip = self._get_tiller_ip()
        tiller_port = self._get_tiller_port()
        try:
            return grpc.insecure_channel(
                '%s:%s' % (tiller_ip, tiller_port),
                options=[
                    ('grpc.max_send_message_length', MAX_MESSAGE_LENGTH),
                    ('grpc.max_receive_message_length', MAX_MESSAGE_LENGTH)
                ]
            )
        except Exception:
            raise ex.ChannelException()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号