Skip to content

Commit a5da390

Browse files
committed
修复93说的并发
1 parent 54e97ba commit a5da390

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/cluster.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ async def error(*responses: aiohttp.ClientResponse):
239239
content: io.BytesIO = io.BytesIO()
240240
resp = None
241241
try:
242-
#async with lock:
243-
resp = await session.get(file.path)
242+
async with lock:
243+
resp = await session.get(file.path)
244244
while data := await resp.content.read(IO_BUFFER):
245245
if not data:
246246
break

0 commit comments

Comments
 (0)