client_wrapper.py 文件源码

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

项目:python-grpc-demo 作者: amitsaha 项目源码 文件源码
def _wrapped_call(self, *args, **kwargs):
        try:
            return getattr(args[0], args[1])(
                args[2], **kwargs, timeout=self.timeout
            )
        except grpc.RpcError as e:
            print('Call {0} failed with {1}'.format(
                args[1], e.code())
            )
            raise
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号