mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-23 15:06:50 +08:00
Refa:replace trio with asyncio (#11831)
### What problem does this PR solve? change: replace trio with asyncio ### Type of change - [x] Refactoring
This commit is contained in:
@ -15,10 +15,10 @@
|
||||
#
|
||||
|
||||
import argparse
|
||||
import asyncio
|
||||
import json
|
||||
import networkx as nx
|
||||
import logging
|
||||
import trio
|
||||
|
||||
from common.constants import LLMType
|
||||
from api.db.services.document_service import DocumentService
|
||||
@ -93,4 +93,4 @@ async def main():
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
trio.run(main)
|
||||
asyncio.run(main)
|
||||
|
||||
Reference in New Issue
Block a user