Skip to content

Commit

Permalink
reivsed mock1
Browse files Browse the repository at this point in the history
  • Loading branch information
cheniujh committed Nov 6, 2024
1 parent 357d804 commit 4075613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/upload_artifact.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def compress_file(file_path):
compressed_file_path = f"{file_path}.gz"
with open(file_path, 'rb') as f_in, open(compressed_file_path, 'wb') as f_out:
compressor = zlib.compressobj(wbits=zlib.MAX_WBITS | 16) # gzip压缩
while chunk := f_in.read(1024 * 1024): # 每次读取1MB
while chunk = f_in.read(1024 * 1024): # 每次读取1MB
f_out.write(compressor.compress(chunk))
f_out.write(compressor.flush())
return compressed_file_path
Expand Down

0 comments on commit 4075613

Please sign in to comment.