main.py 文件源码

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

项目:mist.api 作者: mistio 项目源码 文件源码
def amqp_consume(self):
        """Block on AMQP channel messages until an exception raises"""
        log.info("%s: Starting AMQP consumer.", self.lbl)
        try:
            while True:
                self.chan.wait()
        except BaseException as exc:
            log.error("%s: AMQP consumer exception %r, stopping.",
                      self.lbl, exc)
            self.close_chan()
            self.close_conn()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号