1、update

This commit is contained in:
熊玮 2024-11-21 15:15:58 +08:00
parent fb543a3b0d
commit 52d0f7f1ae

View File

@ -270,7 +270,6 @@ class EdgeContext(LoggingMixin):
# 启动 FastAPI 服务器 # 启动 FastAPI 服务器
tasks.append(self.loop.create_task(self.server.serve())) tasks.append(self.loop.create_task(self.server.serve()))
self.logger.info('edge context start!') self.logger.info('edge context start!')
self.loop.run_until_complete(asyncio.gather(*tasks))
# 保持事件循环的持续运行 # 保持事件循环的持续运行
self.loop.run_forever() self.loop.run_forever()