base_mongodb.py 文件源码

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

项目:aiokts 作者: ktsstudio 项目源码 文件源码
def _connect(self):
        self._conn = motor.motor_asyncio.AsyncIOMotorClient(
            self._build_connection_string(),
            io_loop=self.loop
        )
        try:
            await self.wait_db()
        except AutoReconnect as e:
            self.logger.error("Couldn't connect to db %s", self.fingerprint)
            await self.wait_db()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号