Skip to content

Commit 04249d4

Browse files
committed
fix local var capture issue
1 parent ef57b3d commit 04249d4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

prime_backup/action/helpers/blob_allocator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,11 +499,11 @@ def __try_get_or_create_chunked_blob(self, src_path: Path, src_path_md5: str, st
499499
new_db_chunks.append(db_chunk)
500500
known_db_chunks[db_chunk.hash] = db_chunk
501501

502-
def write_task(db_chunk_=db_chunk, chunk_buf_=chunk_buf):
502+
def write_task(db_chunk_=db_chunk, compressor_=compressor, chunk_buf_=chunk_buf):
503503
chunk_path = chunk_utils.get_chunk_path(db_chunk_.hash)
504504
self.__blob_recorder.add_remove_file_rollbacker(chunk_path)
505505

506-
with compressor.open_compressed_bypassed(chunk_path) as (writer, f):
506+
with compressor_.open_compressed_bypassed(chunk_path) as (writer, f):
507507
f.write(chunk_buf_)
508508

509509
db_chunk_.stored_size = writer.get_write_len()

0 commit comments

Comments
 (0)