Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodong-Yang committed May 27, 2024
1 parent a0b0811 commit b5cd817
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions otaclient/app/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,9 @@ def _thread_initializer(self):
# ------ compression support ------ #
self._thread_local._compression_support_matrix = {}
# zstd decompression adapter
self._thread_local._zstd = ZstdDecompressionAdapter()
self._thread_local._compression_support_matrix["zst"] = self._thread_local._zstd
self._thread_local._compression_support_matrix["zstd"] = (
self._thread_local._zstd
)
self._thread_local._zstd = zstd_adapter = ZstdDecompressionAdapter()
self._thread_local._compression_support_matrix["zst"] = zstd_adapter
self._thread_local._compression_support_matrix["zstd"] = zstd_adapter

# ------ setup buffer ------ #
self._thread_local.buffer = buffer = bytearray(self.CHUNK_SIZE)
Expand Down

0 comments on commit b5cd817

Please sign in to comment.