refac
This commit is contained in:
1 parent
5c1b3693cf
commit
0f704f1809
1 file changed
+1
-1
@@ -288,7 +288,7 @@ async def get_all_models():
|
|||||||
if enable:
|
if enable:
|
||||||
tasks.append(aiohttp_get(f"{url}/api/tags", key))
|
tasks.append(aiohttp_get(f"{url}/api/tags", key))
|
||||||
else:
|
else:
|
||||||
tasks.append(None)
|
tasks.append(asyncio.ensure_future(asyncio.sleep(0, None)))
|
||||||
|
|
||||||
responses = await asyncio.gather(*tasks)
|
responses = await asyncio.gather(*tasks)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user