More efficient flat file list format and various UX improvements #3
|
@ -239,10 +239,8 @@ async def zip_download(req, keys, zipfile, ext):
|
|||
|
||||
def worker():
|
||||
try:
|
||||
with open("test2.zip", "wb") as f:
|
||||
for chunk in stream_zip(local_files(files)):
|
||||
f.write(chunk)
|
||||
asyncio.run_coroutine_threadsafe(queue.put(chunk), loop).result()
|
||||
for chunk in stream_zip(local_files(files)):
|
||||
asyncio.run_coroutine_threadsafe(queue.put(chunk), loop).result()
|
||||
except Exception:
|
||||
logging.exception("Error streaming ZIP")
|
||||
raise
|
||||
|
|
Loading…
Reference in New Issue
Block a user