mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-11 20:05:19 +00:00
removing redundant asyncio.ensure_future() in retrieval.py
This commit is contained in:
parent
76e70128f6
commit
2a9f13a451
1 changed files with 5 additions and 7 deletions
|
|
@ -2064,14 +2064,12 @@ async def process_web_search(
|
|||
)
|
||||
|
||||
search_tasks = [
|
||||
asyncio.ensure_future(
|
||||
run_in_threadpool(
|
||||
search_web,
|
||||
request,
|
||||
request.app.state.config.WEB_SEARCH_ENGINE,
|
||||
query,
|
||||
)
|
||||
)
|
||||
for query in form_data.queries
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue