client.py 文件源码

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

项目:gimel 作者: Alephbet 项目源码 文件源码
def _execute_pipeline(self, connection, commands, raise_on_error):
        # build up all commands into a single request to increase network perf
        all_cmds = connection.pack_commands([args for args, _ in commands])
        connection.send_packed_command(all_cmds)

        response = []
        for args, options in commands:
            try:
                response.append(
                    self.parse_response(connection, args[0], **options))
            except ResponseError:
                response.append(sys.exc_info()[1])

        if raise_on_error:
            self.raise_first_error(commands, response)
        return response
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号